//a program to print large number using conditional operator
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,max;
printf("enter values for a and b");
scanf("%d %d",&a,&b);
max = a>b ? a:b;
printf("entered values are%d,%d,%d",a,b,max);
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,max;
printf("enter values for a and b");
scanf("%d %d",&a,&b);
max = a>b ? a:b;
printf("entered values are%d,%d,%d",a,b,max);
return 0;
}
No comments:
Post a Comment