prev


Ternary Operator

28. Biggest of three numbers(8.7.2009)

/*
Program# 28
date : 25-12-2008
Biggest of three numbers
*/

#include <stdio.h>
main()
{
int a,b,c,x,y;
printf("\nEnter three integers :");
scanf("%d %d %d",&a,&b,&c);
x=a>b?a:b;
y=x>c?x:c;
printf("\n%d : Biggest number\n",y);n(){

}

output:
Enter three integers :45 316 4
316 : Biggest number

next
blog comments powered by Disqus