3- Write a program to find larger and smaller of the two
numbers.
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Under what conditions is multiple inheritance not recommended?
What is the size of pointer ? Also size of pointer in 64 bit pointer
What are the extraction and insertion operators in c++? Explain with examples.
What is a constructor in c++ with example?
What does ctime() do?
What will i and j equal after the code below is executed? Explain your answer.
Why did you leave your last job?
What is malloc in c++?
Why should you learn c++?
What is a lambda function c++?
Differences between private, protected and public and give examples.
Why struct is used in c++?