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

Can circle be called an ellipse?

1032


What is the role of C++ shorthand's?

1233


What is the full name of logo?

1074


Explain virtual class?

975


What is a float in c++?

937


Templates mean

2037


Write about the retrieval of n number of objects during the process of delete[]p?

980


What is the basic concept of c++?

966


What is private, public and protected inheritance?

1045


What are shallow and deep copy?

1057


What is the difference between realloc() and free() in C++?

881


What does std :: flush do?

1082


What are the advantage of using register variables?

1125


write a porgram in c++ that reads an integer and print the biggest digit in the number

2211


How long it will take to learn c++?

1007