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...

how to find out the maximum number out of the three inputs.

Answer Posted / ceeemor

#include<iostream>
using namespace std;
int main() {

int num[3];

cout << " Input 3 integers : ";
for (int i =0; i <3; i++) {
cin >> num[i];
}

sort(num, num+3);

cout << " The largest num in the given input s : " << num
[2] << endl;

return 0;
}

Is This Answer Correct ?    14 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to swap two ASCII numbers?

3042


1+1/2!+1/3!+...+1/n!

2413


Code for Method of Handling Factorials of Any Size?

2486


Write a simple encryption program using string function which apply the substitution method.

6117


Given a table of the form: Product Sold on A 1/1/1980 B 1/1/1980 C 1/1/1980 A 1/1/1980 B 1/1/1980 C 2/1/1980 A 2/1/1980 There are 30 products and 10,000 records of such type. Also the month period during which sales happened is given to u. Write the program to display the result as: Product Month No. of copies A January 12 A February 15 A March 27 B January 54 B February 15 B March 10 C January 37

2683


write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used

4860


create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file

2712


write a program that reverses the input number of n.Formulate an equation to come up with the answer.

7684


can you please write a program for deadlock that can detect deadlock and to prevent deadlock.

3233


develop a program to calculate and print body mass index for 200 employees

2659


how to write a program that opens a file and display in reverse order?

3062


How can I Draw an ellipse in 3d space and color it by using graph3d?

2620


How to Split Strings with Regex in Managed C++ Applications?

3671


Write a program that print in screen a tree with its height taken from user by entering number of 4 digits and find the odd numbers then calculate the sum of odd numbers so he get the height of tree?

3359


Code for Two Classes for Doing Gzip in Memory?

3262