#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int var1, var2, var3;
cout<<"Enter three numbers\n";
cin>>var1>>var2>>var3;
if(var1>var2 && var1>var3)
cout<<var1<<" is greater in three numbers."<<endl;
else if(var2>var3)
cout<<var2<<" is greater in three numbers."<<endl;
else
cout<<var3<<" is greater in three numbers."<<endl;
getch();
return 0;
}
Output
Showing posts with label Greater in three numbers. Show all posts
Showing posts with label Greater in three numbers. Show all posts
Wednesday, 18 October 2017
Greater in three numbers in c++
Subscribe to:
Posts (Atom)
Python Program to find Fabonacci
fabtab={} def fabonacci(n): fabtab[0]=0 fabtab[1]=1 for i in range(2,n+1): fabtab[i]=fabtab[i-1]+fabtab[i-2] ...
-
#include< iostream > #include< conio.h > #include< math.h > using namespace std; int Octal_to_Decimal(long n) { ...
-
#include< iostream > #include< conio.h > #include< math.h > using namespace std; int Octal_to_Binary(long n) { ...
-
#include iostream > #include conio.h > using namespace std; int main() { float lenght, breath; doubl...
