write a program in visual basic to input two number and find the greater number
Answers
Answered by
1
#include<iostream. h>
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"enter first number";
cin>>a;
cout<<"enter second number";
cin>>b;
if(a>b)
{
cout <<a<<"is largest";
}
else
{
cout<<b<<"is largest";
}
getch();
}
#include<conio.h>
void main()
{
clrscr();
int a,b;
cout<<"enter first number";
cin>>a;
cout<<"enter second number";
cin>>b;
if(a>b)
{
cout <<a<<"is largest";
}
else
{
cout<<b<<"is largest";
}
getch();
}
Similar questions