3- Write a program to find larger and smaller of the two
numbers.
Answer Posted / shubhashree sahoo
# 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 ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is a storage class?
Is c++ vector dynamic?
Can we use this pointer inside static member function?
What are the five basic elements of a c++ program?
Explain about Garbage Collector?
What are the comments in c++?
Why is the function main() special?
What is the limitation of cin while taking input for character array?
What is bubble sort c++?
What does std :: flush do?
How would you implement a substr() function that extracts a sub string from a given string?
What is difference between malloc()/free() and new/delete?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
How do you traverse a btree in backward in-order?
Is java based off c++?