Bhuvan InfoTech Android App

Download our Android App and browse Technical News, Projects, Computer Tricks more easily with lots of Interesting Features.

Thursday, January 14, 2016

Largest value of two variables - Conditional Operator

#include<stdio.h>
int main()
{
 int a,b,d;

 printf("Type values of A and B : ");
 scanf("%d %d",&a,&b);
 d=(a>=b?a:b);
 printf("Greatest value : %d",d);
 return 0;
}
Bhuvan Arora

No comments:

Amazing Deal !