Feed Headline Animator

Program using if-else statement to find the largest number in the given three numbers (If Else Statement).

Main()
{
int n,m,k;
printf(“Enter three numbers\n”);
scanf(“%d%d%d”,&n,&m,&k);
if((n>m)&&(n>k))
printf(“Greater no=%d\n”,n);
else
if(m>n&&m>k)
printf(“Greater no=%d\n”,m);
else
if(k>n&& k>m)
printf(“Greater no =%d\n”,k);
getch();
}


Posted by: Wasim Javed

No comments:

Post a Comment