mahdi7s
25-05-2008, 15:59
#include <iostream>
int main()
{
using std::cout;
using std::cin;
int firstCity,secondCity;
cout <<"plz Enter two number great city for travel\nfirstCity = ";
cin >>firstCity;
cout <<"\nsecondNumber = ";
cin >>secondCity;
cout <<"\n";
if(firstCity,secondCity)
{
cout <<"Let's go first\n";
}
if(secondCity > firstCity)
{
cout <<"Let's go second!!\n";
}
if(firstCity == secondCity)
{
cout <<"All of them are good,but!!!\n";
cout <<"Enter other Number for second";
cin >>secondCity;
if(firstCity > secondCiy)
cout <<"\nLet's go to first!\n";
if(secondCity > firstCity)
cout <<"Let's go second.\n";
if(firstCity == secondCity)
cout <<"Wow! All of them are good\nplz go to all";
}
cout <<"\nBye\n";
return 0;
}
int main()
{
using std::cout;
using std::cin;
int firstCity,secondCity;
cout <<"plz Enter two number great city for travel\nfirstCity = ";
cin >>firstCity;
cout <<"\nsecondNumber = ";
cin >>secondCity;
cout <<"\n";
if(firstCity,secondCity)
{
cout <<"Let's go first\n";
}
if(secondCity > firstCity)
{
cout <<"Let's go second!!\n";
}
if(firstCity == secondCity)
{
cout <<"All of them are good,but!!!\n";
cout <<"Enter other Number for second";
cin >>secondCity;
if(firstCity > secondCiy)
cout <<"\nLet's go to first!\n";
if(secondCity > firstCity)
cout <<"Let's go second.\n";
if(firstCity == secondCity)
cout <<"Wow! All of them are good\nplz go to all";
}
cout <<"\nBye\n";
return 0;
}