Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

3- Write a program to find larger and smaller of the two
numbers.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function that swaps the values of two integers, using int* as the argument type?

1031


What do you mean by early binding?

1069


What are files in c++?

1041


Ask to write virtual base class code?

2759


What is an operator in c++?

1068


What are the important differences between c++ and java?

1155


How can I improve my c++ skills?

1138


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6411


What is a rooted hierarchy?

1166


What jobs can you get with a c++ certification?

1057


What is an incomplete type in c++?

1282


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1261


Explain about Garbage Collector?

1122


What is the difference between a baller and a reference in C++?

1125


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1136