You could use an if, but the ternary operator is especially compact for this purpose:
result = a > b ? a : b;
2 of course. Because 2 is positive and -5 is negative and positive numbers are always greater than negative numbers.
0.888, 4, and 3 million are among the infinite set of numbers greater than 0.833.
720.
12
There are infinitely many such numbers. Among them is 0.26
#include<stdio.h> void main() { int a[3],i,b; printf("Enter 3 numbers\n"); for(i=0;i<=3;i++) scanf("%d",&a[i]); b=a[0]; for(i=0;i<=3;i++) if(a[i]>b) b=a[i]; printf("The biggest number is %d",b); }
Any multiple of 60 from 540 to 960
among
To find the gcf of 48 and 88, first write both the numbers in terms of their prime factors48=2x2x2x2x388=2x2x2x11Now find the common among them=2x2x2=8 = GCF
Oh, what a happy little question! If we take a look at numbers greater than 75, we can find that there are 12 prime numbers among them. Just like painting a beautiful landscape, numbers can be grouped and understood in simple ways that bring us joy and clarity.
int max (int a, int b) { return a>b?a:b; }
Among the whole numbers, these are:149162536496481100