Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a program to read two numbers from the keyboard and display the larger value on the screen

Answer Posted / hr

#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
float a,b;
cout<<" Enter two values :"<<endl;
cin>>a>>b;
if(a>b)
cout<<" larger value = "<<a<<endl;
else
cout<<" larger value = "<<b<<endl;
return 0;
}
OUTPUT:
Enter two values:10 20
Larger value:20

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is low level language in simple words?

1030


Prepare me a program for the animation of train

2468


Difference between overloaded functions and overridden functions

1051


Can I learn c++ without c?

1140


What are abstract data types in c++?

980


What is a rooted hierarchy?

1152


What is Boyce Codd Normal form?

1075


What is data types c++?

1012


What is polymorphism in oop example?

1017


What is conversion constructor in C++

1040


What is the difference between mutex and binary semaphore?

1194


Why it is called runtime polymorphism?

1123


Explain storage qualifiers in c++.

1076


What are files in c++?

1038


What is the difference between malloc, calloc and realloc?

1031