Answer Posted / subrat
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,max;
printf("enter any three numbers");
scanf("%d %d %d",&a,&b,&c);
max=a;
if(b>max)
max=b;
if (c>max)
max=c;
printf("largest of %d %d %d is %d", a,b,c,max);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is there any possibility to create customized header file with c programming language?
What is a pointer in c?
When should the register modifier be used? Does it really help?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Write the program with at least two functions to solve the following problem. The members of the board of a small university are considering voting for a pay increase for their 10 faculty members. They are considering a pay increase of 8%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase, and the total pay increase involved.
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What are c identifiers?
What is #line used for?
In a switch statement, explain what will happen if a break statement is omitted?
What is the difference between far and near ?
Explain how can I manipulate strings of multibyte characters?
can we change the default calling convention in c if yes than how.........?
What is the easiest sorting method to use?
Difference between malloc() and calloc() function?
Explain how can you be sure that a program follows the ansi c standard?