Popular Posts

10.Write a program to enter two values and show which one is largest .

10.Write a program to enter two values and show which one is largest .

#include
#include
int main()
{
clrscr();
float a,b;
cout<<"Enter value of a: "; cin>>a;
cout<<"Enter value of b: "; cin>>b;
if(a>b)
cout<a)
cout< getch();
return 0;
}


Output:

Enter value of x: 12
Enter value of y: 15

No comments: