Greatest number amonh three numbers using Conditional operator

/* Write a program to find Greatest number amonh three numbers using Conditional operator*/

#include<stdio.h>
#include<conio.h>
void main()
{
int n1,n2,n3,big;
clrscr();
printf("\n Enter Three Numbers");
scanf("%d%d%d",&n1,&n2,n3);
big = ( (n1>n2)?( (n1>n3)?n1:n3 ) : ( (n2>n3)?n2:n3 ) );
printf("\n The Greater Number is %d",big);
getch();

}

Who's online

We have 29 guests and no members online

About Us

Harsimran Singh

Hello

This website is a special gift for Programming Lovers , which want to learn basic Programming Languages and want to develop there skills Read More....

Our work

Find Us

This email address is being protected from spambots. You need JavaScript enabled to view it.

Harsimran Singh(Facebook)

Harsimran Singh(about.me)

Harsimran Singh(G+)