Saturday, May 25, 2019

c programming form a program to print large number using conditional operator

//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;
}

No comments:

Post a Comment

python class topic video