1.

write a program in c++ that print the largest of two numbers entered from the keyboard. pass the two numbers to a function as argument, find the largest and return this value to a main function.

Answer»

Answer:

YOUR ANSWER IS HERE

AND

OUTPUT IS IN THE ATTACHMENT

Explanation:

#include

#include using namespace std;

#include using namespace std;int MAIN()

#include using namespace std;int main(){

#include using namespace std;int main(){ int num1, num2;

#include using namespace std;int main(){ int num1, num2; COUT<<"ENTER first number:";

#include using namespace std;int main(){ int num1, num2; cout<<"Enter first number:"; cin>>num1;

#include using namespace std;int main(){ int num1, num2; cout<<"Enter first number:"; cin>>num1; cout<<"Enter second number:";

#include using namespace std;int main(){ int num1, num2; cout<<"Enter first number:"; cin>>num1; cout<<"Enter second number:"; cin>>num2;

#include using namespace std;int main(){ int num1, num2; cout<<"Enter first number:"; cin>>num1; cout<<"Enter second number:"; cin>>num2; if(num1>num2)

#include using namespace std;int main(){ int num1, num2; cout<<"Enter first number:"; cin>>num1; cout<<"Enter second number:"; cin>>num2; if(num1>num2) { cout<<"First number "<

#include using namespace std;int main(){ int num1, num2; cout<<"Enter first number:"; cin>>num1; cout<<"Enter second number:"; cin>>num2; if(num1>num2) { cout<<"First number "<

#include using namespace std;int main(){ int num1, num2; cout<<"Enter first number:"; cin>>num1; cout<<"Enter second number:"; cin>>num2; if(num1>num2) { cout<<"First number "< largest"; }

largest"; } return 0;}



Discussion

No Comment Found