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

Under what conditions is multiple inheritance not recommended?

1 Answers  


What is the size of pointer ? Also size of pointer in 64 bit pointer

4 Answers  


What are the extraction and insertion operators in c++? Explain with examples.

0 Answers  


What is a constructor in c++ with example?

0 Answers  


What does ctime() do?

0 Answers  






What will i and j equal after the code below is executed? Explain your answer.

1 Answers  


Why did you leave your last job?

2 Answers  


What is malloc in c++?

0 Answers  


Why should you learn c++?

0 Answers  


What is a lambda function c++?

0 Answers  


Differences between private, protected and public and give examples.

0 Answers  


Why struct is used in c++?

0 Answers  


Categories