1 Unconditional Statement Sun Sep 18, 2011 12:39 am
Kannan
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);
}