Posted by criss 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 
umair,
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;