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 special characters c++?

0 Answers  


What is the difference between while and do while loop?

0 Answers  


How many types of casting are there in C++? When is a dynamic cast,static_cast,reinterpret cast used?

2 Answers   CTS,


Will the inline function be compiled as the inline function always? Justify.

1 Answers  


Is java as fast as c++?

0 Answers  






What is isdigit c++?

0 Answers  


What are the basics of local (auto) objects?

0 Answers  


What are pointer-to-members? Explain.

0 Answers   iNautix,


Keyword mean in declaration?

0 Answers  


What is meant by entry controlled loop? What all C++ loops are exit controlled?

0 Answers   TCS,


Explain terminate() and unexpected() function?

0 Answers  


What is the Diffrence between a "assignment operator" and a "copy constructor"?

3 Answers   Wipro,


Categories