PROGRAMMING IN C++
18 February 2017
PROGRAM TO FIND MAXIMUM FROM 2 NUMBERS
INPUT=
#include<iostream>
using namespace std;
int main()
{
int a,b;
cout<<"enter 2 numbers"<<a;
if(a>b)
cout<<"max="<<a;
else
cout<<"max="<<b;
return 0;
}
OUTPUT=
Enter 2 numbers= 6 8
max= 8
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment