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
Why c is called a mid level programming language?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
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.
What does struct node * mean?
How do you construct an increment statement or decrement statement in C?
How will you write a code for accessing the length of an array without assigning it to another variable?
What is c standard library?
What are the similarities between c and c++?
Where register variables are stored in c?
Explain what header files do I need in order to define the standard library functions I use?
When a c file is executed there are many files that are automatically opened what are they files?
Explain Basic concepts of C language?
What functions are used for dynamic memory allocation in c language?
How would you obtain the current time and difference between two times?