Cyber Console
Would you like to react to this message? Create an account in a few clicks or log in to continue.

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]

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

Kannan

Kannan
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);
}

https://cyberconsole.forumotion.com

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

Similar topics

-

» Conditional Statement

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