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
is it possible to create your own header files?
What is auto keyword in c?
When should the register modifier be used? Does it really help?
Is main an identifier in c?
What is #include cctype?
What is the meaning of ?
Explain how can type-insensitive macros be created?
What are the advantages of the functions?
how to create duplicate link list using C???
What is .obj file in c?
Is c easier than java?
Ow can I insert or delete a line (or record) in the middle of a file?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.
Why is c called a structured programming language?