Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <cstdlib>
- using namespace std;
- int main(){
- srand(time(NULL));
- int magic = rand()%100 + 1;
- int guess;
- do{
- cout << "Dose Arithmo vlaka: ";
- cin >> guess;
- if(guess == magic){
- cout << "Bravo kolofarde!" << endl;
- }
- else{
- cout << "LATHOS AXRISTE!";
- if (guess > magic)
- cout << "Poli megalo arithmo edoses" << endl;
- else
- cout << "Edoses mikro arithmo, san to pouli sou" << endl;
- }
- }while (guess != magic);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement