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
How to swap two ASCII numbers?
1+1/2!+1/3!+...+1/n!
Code for Method of Handling Factorials of Any Size?
Write a simple encryption program using string function which apply the substitution method.
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
write a program that prompt the user to enter his height and weight,then calculate the body mass index and show the algorithm used
create a stucture student containing field for roll no,class,year and marks.create 10 student annd store them in a file
write a program that reverses the input number of n.Formulate an equation to come up with the answer.
can you please write a program for deadlock that can detect deadlock and to prevent deadlock.
develop a program to calculate and print body mass index for 200 employees
how to write a program that opens a file and display in reverse order?
How can I Draw an ellipse in 3d space and color it by using graph3d?
How to Split Strings with Regex in Managed C++ Applications?
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?
Code for Two Classes for Doing Gzip in Memory?