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

Explain Text Manipulation Routines?

0 Answers  


How can an improvement in the quality of software be done by try/catch/throw?

0 Answers  


What is meant by iomanip in c++?

0 Answers  


What do you mean by abstraction in C++?

1 Answers  


What is function overriding in c++?

0 Answers  






Program to check whether a word is a sub-string or not of a string typed

0 Answers  


What is an opaque pointer?

1 Answers  


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

0 Answers  


When should overload new operator on a global basis or a class basis?

0 Answers  


What are activex and ole?

0 Answers  


What are inline functions? What is the syntax for defining an inline function?

0 Answers  


What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?

1 Answers   Yahoo,


Categories