Posted by criss on Tuesday, January 1, 2013 at 11:17pm.
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;
Related Questions
Programming - Read two numbers from the keyboard Display the menu options as ...
Algorithm - write a pseudo code algorithm that will accept 20 numbers and finds ...
programming - 1. Write a structured algorithm that prompts the user to input two...
programming - Write an algorithm that prints the factorial for the first 20 even...
Computer Information - A __________ provides the tools that a programmer uses to...
Computer Programming - Can anyone give me a site that contains a C source code. ...
java programming - could someone help me create a source code that requires you ...
Computer Programming - can anyone give me site about programming I need a sample...
programming1 - please help me in my school assignmnt. Write the algorithm and ...
programming - Write an algorithm that converts a decimal number to binary. Then...
For Further Reading