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 |
How do you master coding?
What is a parameterized type?
char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What are member functions used in c++?
Describe the setting up of my member functions to avoid overriding by the derived class?
How does throwing and catching exceptions differ from using setjmp and longjmp?
How many types of classes are there in c++?
How are the features of c++ different from c?
Explain the differences between list x; & list x();.
What is virtual constructor paradigm?
What is difference between malloc()/free() and new/delete?