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



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

Answer / 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

More C++ Interview Questions

What are string library functions(syntax).

0 Answers   Accenture,


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

0 Answers   IBS, TCS,


What is partial specialization or template specialization?

0 Answers   Amazon,


dynamic scoping is

0 Answers   Siemens,


Write a program that ask for user input from 5 to 9 then calculate the average

0 Answers   IBS,


How to convert integer to string in C++

0 Answers  


To solve the 8 Queens problem, which algorithm is used?

0 Answers   Accenture,


Write a C++ Program to Find Sum and Average of n numbers using for loop.

1 Answers  


What is the difference between member functions and static member functions?

0 Answers   Alter,


Find the Factorial of a number using a program.

0 Answers   Accenture,


What Are The Differences Between A C++ Struct And C++ Class?

2 Answers   Wipro,


Write a program to generate the Fibonocci Series in C++.

0 Answers   Accenture,


Categories