First Commit

This commit is contained in:
2021-04-25 15:28:50 +05:30
commit c3dbda79c4
22 changed files with 138 additions and 0 deletions

9
MaximumNo3.c Normal file
View File

@@ -0,0 +1,9 @@
// WAP to find maximum out of three number using conditional operator.
void main() {
int a,b,c,max;
printf("Enter 3 numbers:\n");
scanf("%d %d %d",&a,&b,&c);
max = a > b ? ( a > c ? a : c ) : ( b > c ? b : c);
printf("\nThe biggest number between %d, %d & %d is: %d",a,b,c,max);
}