C Program 7
#include<stdio.h>
int main()
{
int num1,num2,num3;
clrscr();
printf("enter the three number ");
scanf("%d%d%d",&num1,&num2,&num3);
if(num1>=num2)
{
if(num1>=num3)
printf("2if is the largest number=%d ",num1);
else
printf("2if is the largest number=%d ",num3);
}
else
{
if(num2>=num3)
printf("2if is the largest number=%d ",num2);
else
printf("2if is the largest number=%d ",num3);
}
getch();
}
C+ Plus Program
Reviewed by Tejpal singh
on
March 14, 2022
Rating:
No comments: