Wednesday, November 23, 2011

How to find biggest of three numbers using c program ???


void main()
{
int s1, s2, s3;
clrscr();
printf("Enter any three numbers ");
scanf("%d%d%d", &s1, &s2, &s3);

if(s1>s2 && s1>s3)
printf("First No is big");
else if(s2>s1 && s2>s3)
printf("Second No is big");
else
printf("Third No is big");

getch();
}

1 comments:

Anonymous said...

Program super boss :p :0 @teja

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Vamshi krishnam raju | Bloggerized by Vamshi krishnam raju - Vamshi krishnam raju | Vamshi krishnam raju