Welocome to the Cyber Console. The world of Cyber Geeks. Cyber Console is a community forum of GeeTech Inc.


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Unconditional Statement on Sun Sep 18, 2011 12:39 am

Kannan

avatar
Admin
Admin
program to find the greatest of three numbers using unconditional statement:

Code:
#include<stdio.h>
void main()
{
int a,b,c,big;
printf("\nEnter 3 numbers:");
scanf("%d %d %d",&a,&b,&c);
big=(a>b&&a>c?a:b>c?b:c);
printf("\nThe biggest number is:%d",big);
}


___________________________________
http://cyberconsole.finddiscussion.com

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum