3- Write a program to find larger and smaller of the two
numbers.

Answers were Sorted based on User's Feedback



3- Write a program to find larger and smaller of the two numbers...

Answer / 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

3- Write a program to find larger and smaller of the two numbers...

Answer / laxman kanhere

# 1 # include <conio.h>
# include <iostream.h>
void main()
{
clrscr();
int c1,c2;
cout<<"/n ENTER VALUES OF C1 AND C2";
cin>>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

3- Write a program to find larger and smaller of the two numbers...

Answer / 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

3- Write a program to find larger and smaller of the two numbers...

Answer / tcs

#include<iostram.h>
void main()
{
int a,b,c;
cout<<"enter two num";
cin>>a>>b;
if(a>b)
{
cout<<"a is greater"<<a;
}
else
{
cout<<"a is small"<<a;
}
}

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C++ General Interview Questions

What are function poinetrs? where are they used?

1 Answers   CTS,


what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.

9 Answers  


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

0 Answers  


What is the best c++ book?

0 Answers  


Will a catch statement catch a derived exception if it is looking for the base class?

0 Answers  






Explain the purpose of the keyword volatile.

0 Answers  


What are virtual constructors/destructors?

0 Answers  


what does the following statement mean? int (*a)[4]

0 Answers  


What is the advantage of c++ over c?

0 Answers  


What is the difference between a type-specific template friend class and a general template friend class?

0 Answers  


What is "mutable" keyword?

2 Answers   Infosys, Teradata,


How is computer programming useful in real life?

0 Answers  


Categories