write a programme to enter some number and find which
number is maximum and which number is minimum from enterd
numbers.
Answer Posted / hari.11
#include<stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d", a>b ? a : b);
return 0;
}
for further queries and discussions, visit..
http://forum.campusmaniac.com/
http://www.campusmaniac.com/
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain bitwise shift operators?
What is a constant?
Why use int main instead of void main?
Explain the priority queues?
How can I find out how much free space is available on disk?
What is a program flowchart and how does it help in writing a program?
What should malloc(0) do?
what are the advantages of a macro over a function?
When c language was developed?
What are predefined functions in c?
What is #ifdef ? What is its application?
What is the default value of local and global variables in c?
What is scope and lifetime of a variable in c?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What is switch in c?