Thursday
March 30, 2017

Post a New Question

Posted by on .

what will be the c++ source code of finding the largest value among the N numbers? translate the algorithm:
1. the largest number is:
2. the smallest number is:
3. display all the numbers inputted:
4. show the final output.

  • programming - ,

    int a,b;
    cout<<"enter the value of a:";
    cin>>a;
    cout<<"enter the value of b:";
    cin>>b;
    if(a>b)
    cout<<"largest value is:"<<a<<endl;
    else
    cout<<"smallest value:"<<b<<endl;

Answer This Question

First Name:
School Subject:
Answer:

Related Questions

More Related Questions

Post a New Question