programming
posted by criss .
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.

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;