First Commit
This commit is contained in:
9
MaximumNo.c
Normal file
9
MaximumNo.c
Normal file
@@ -0,0 +1,9 @@
|
||||
// WAP to find maximum number using conditional operator.
|
||||
|
||||
void main() {
|
||||
int a,b,max;
|
||||
printf("Enter the two numbers\n");
|
||||
scanf("%d%d",&a,&b);
|
||||
max=(a>b)?a:b;
|
||||
printf("Maximum between %d and %d is %d",a,b,max);
|
||||
}
|
||||
Reference in New Issue
Block a user