Friday 4 July 2014

Program to find biggest from 2 numbers




//Biggest from two numbers
#include<iostream.h>
#include<conio.h>
void main ()
{
int a,b;
clrscr ();
cout<<"Enter two numbers:";
cin>>a>>b;
if(a>b)
cout<<"Biggest number is: "<<a;
else
cout<<"Biggest number is: "<<b;
getch();
}

No comments:

Post a Comment