Answer Posted / guest
#include<stdio.h>
main()
{
int num1,num2,num3,num4,num5;
clrscr();
printf("Please enter five numbers:");
scanf("%i,%i,%i,%i,%i",&num1,&num2,&num3,&num4,&num5);
if(num1>num2,num3,num4,num5)
{
printf("this number is the largest %i",num1);
}
else if(num2>num1,num3,num4,num5)
{
printf("this number is the largest %i",num2);
}
else if(num3>num2,num4,num5,num1)
{
printf("this number is the largest %i",num3);
}
else if(num4>num1,num2,num3,num5)
{
printf("this is the largest number %i",num4);
}
else if(num5>num1,num2,num3,num4)
{
printf("this is the largest number %i",num5);
}
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What does int main () mean?
Explain the difference between null pointer and void pointer.
What does sizeof int return?
What is assignment operator?
What is the use of static variable in c?
For what purpose null pointer used?
What is the difference between a free-standing and a hosted environment?
Explain the Difference between the New and Malloc keyword.
What is static and volatile in c?
What does return 1 means in c?
Write a program to print fibonacci series without using recursion?
What are enums in c?
hi, which software companys will take,if d candidate's % is jst 55%?
What tq means in chat?