3- Write a program to find larger and smaller of the two
numbers.
Answer Posted / jack
# include <conio.h>
# include <iostream.h>
void main()
{
clrscr();
int c1,c2;
cout<<"/n ENTER VALUES OF C1 AND C2">>;
cin<<%%d%d,&c1,&c2>>;
if c1>c2
print("c1 is greater")
else
print("c2 is greater and c1 is smaller")
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How we can differentiate between a pre and post increment operators during overloading?
How do you find out if a linked-list has an end?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Is swift better than c++?
What will the line of code below print out and why?
How do you save a c++ program?
When must you use a pointer rather than a reference?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
What are the extraction and insertion operators in c++? Explain with examples.
Name the operators that cannot be overloaded in C++?
What is the meaning of string in c++?
What do you mean by function pointer?
What is the difference between multiple and multilevel inheritance in c++?
What is a terminating character in c++?
Define basic type of variable used for a different condition in C++?