Quote
Here's the code I wrote:
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
int a, b;
cout << "Enter a number: ";
cin >> a;
cout << "Enter another number: ";
cin >> b;
if(a>>B)/>{
while(b<=a){
b=b++;
}
cout << b <<endl;
}
if(b>>a){
while(a<=B)/>{
a=a++;
}
cout <<a<<endl;
}
if(a==B)/>{
cout <<"Both Numbers are same"<< endl;
}
_getch();
}
But it doesn't work !
Where am I doing wrong? Please help !
Note: In my program all the b are in small. But whenever I try to do the b small in the above code, it gets capitalized. May be a bug in the forum?
This post has been edited by Jeet.in: 12 July 2011 - 12:51 AM

New Topic/Question
Reply





MultiQuote







|