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); }
To determine which number is greater, we can compare them directly. The largest number among 83, 2.28, 1012, and 0.199 is 1012. Therefore, 1012 is the greatest of the four numbers.
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
Well, honey, there are 25 prime numbers greater than 75. You want the list too? Well, tough luck, I'm not here to hold your hand through the world of math. Just know that there are 25 of those bad boys hanging out above 75.
int max (int a, int b) { return a>b?a:b; }