3- Write a program to find larger and smaller of the two
numbers.
Answer Posted / 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 View All Answers
What is the type of 'this' pointer?
What do you mean by function overriding & function overloading in c++?
What is srand c++?
how to connect with oracle 9i with server in socket program in c/c++
What return value must conversion operators have in their declaration?
What c++ library is string in?
What is meaning of in c++?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
Does c++ vector allocate memory?
Which function should be used to free the memory allocated by calloc()?
What is a .lib file in c++?
What is difference between array and vector in c++?
Explain explicit container.
What is decltype c++?
Explain rethrowing exceptions with an example?