answersLogoWhite

0

smallest = min (one_number, another_number);

...or...

smallest = one_number < another_number ? one_number : another_number;

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

What is the smallest number of bases on a DNA strand needed to code for insulin?

That A + B /c is A+B/c but you really need to know the answer


How do you find the smallest largest numbers in c language?

for the largest number: #include&lt;stdio.h&gt; void main() { int a,b,c,number,largestnumber; a=99; b=9; c=77; if(a&gt;b) { number=a; } else if(b&gt;c) { number=b; } else { number=c; } largestnumber=number; printf("%d",largestnumber); }


C program to find the largest and smallest character in a word?

helicopter


A compound contains 259.2g of F and 40.8g of C What is the empirical formula for this compound?

Find the number of moles for both of them , so :-for F 259.2/19 =13.64210526for C 40.8/12 = 3.4then divide by the smallest number to find the smallest ratio, so divide by 3.4for F (259.2/19)/3.4 =4.0124for C 3.4/3.4 = 1so i think we have 4 of F and 1 of Cso i think : CF4


How do you write a c program to find the smallest word in a string?

what is if(!(str[i]==32))


Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?

Write a C program called MonthDays to find the number of days in a given month Test your code with different input values to demonstrate that your function is robust?


What is the smallest number of formal parameters that can be included in a function definition in C?

You can have a function with no parameters.


C program to find only smallest numbers in the given list?

int findSmallest(int *list, int listsize) { int i; int smallest = list[0]; for(i = 1; i &lt; listsize; i++) { if(list[i] &lt; smallest) smallest = list[i]; } return smallest; }


C program to find the largest and smallest of three numbers using IF IF ELSE?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int a,b,c; clrscr(); printf("Enter any three numbers"); scanf("%d%d%d",&amp;a,&amp;b,&amp;c); if(a&gt;b&amp;&amp;a&gt;c) printf("A is greatest"); else if(b&gt;a&amp;&amp;a&gt;c) printf("B is greatest"); else if(c&gt;a&amp;&amp;c&gt;b) printf("C is greatest"); if(a&lt;b&amp;&amp;a&lt;c) printf("A is smallest"); else if(b&lt;a&amp;&amp;b&lt;c) printf("B is smallest"); else if(c&lt;a&amp;&amp;c&lt;b) printf("C is smallest"); getch(); }


How do you find the chromatic number?

There are many ways to find the chromatic number. One way is to write the chromatic polynomial and obtain it from that. For example, let's look at a complete graph on 3 points which looks like a triangle. We can color the first vertex in x ways, the second is x-1 ways and the third in x-2 ways. So the chromatic polynomial is C(x)=x(x-1)(x-2) not the smallest natural number, N, such that C(N) is not equal to zero is the chromatic number. So in this case it is 3. This number tells us the we can color the graph with 3 different colors and have no vertices with the same color. Any smaller number of colors, say 2 would not work.So the answer is find C(x) the chromatic polynomial and then find the smallest natural number such that C(x) is not zero. There are many other methods to find it, but that one is sometimes the simplest.


How do you find the minimum value of an array in c language?

Your best bet would probably be to iterate through the array using a for loop and compare each value to the current low and high values (which you would store in a local variable) for example: for each element in array { if current is less than lowest_value lowest_value = current else if current is greater than highest_value highest_value = current }


How do you find a code c?

It is a bar-code variant, code128c https://en.wikipedia.org/wiki/Code_128