SHARE
TWEET

Untitled

a guest May 23rd, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <cmath>
  3. #include <time.h>
  4. #include <cstdlib>
  5. #include <conio.h>
  6. using namespace std;
  7. int main(){
  8.     char ch;
  9.     int a,b,c,d,e,f;
  10.     a=0;
  11.     b=0;
  12.     c=0;
  13.     do{
  14.     int d;
  15.     cout << "----------------AKMUO-----------------" << endl;
  16.     _sleep(1500);
  17.     cout << "**************POPIERIUS***************" << endl;
  18.     _sleep(1500);
  19.     cout << "~~~~~~~~~~~~~~~ZIRKLES~~~~~~~~~~~~~~~~" << endl;
  20.     _sleep(1500);
  21.     cout << " " <<endl;
  22.     cout << " " <<endl;
  23.     cout << " " <<endl;
  24.     cout << "Spauskite atitinkama mygtuka:" << endl;
  25.     cout << "Akmuo 1, Popierius 2, Zirkles 3" << endl;
  26.     cin >> d;
  27.     e=rand()%3+1;
  28.     if (e==1)
  29.     cout <<  "Kompiuteris pasirinko akmeni. " <<endl;
  30.     else if (e==2) cout << "Kompiuteris pasirinko oopieriu. " <<endl;
  31.     else if (e==3) cout << "Kompiuteris pasirinko zirkles" <<endl;
  32.  
  33.     if(d == 1 && e == 1){
  34.          cout << "Akmuo su akmeniu. Lygiosios!" << endl;
  35.          b++;
  36.          }
  37.     else if(d ==1 && e== 2){
  38.          cout << "Popierius uzdengia akmeni, laimejo kompiuteris!" << endl;
  39.          c++;
  40.          }
  41.     else if(d == 1 && e == 3){
  42.          cout << "Akmuo nugali zirkles, tu laimi!" << endl;
  43.          a++;
  44.          }
  45.     else if(d == 2 && e == 1){
  46.          cout << "Popierius uzdengia akmeni, tu laimi!" << endl;
  47.          a++;
  48.          }
  49.     else if(d == 2 && e == 2){
  50.          cout << "Popierius su popierium. Lygiosios!" << endl;
  51.          b++;
  52.          }
  53.     else if(d == 2 && e == 3){
  54.          cout << "Zirkles sukarpo popieriu. Kompiuteris laimi!" << endl;
  55.          c++;
  56.          }
  57.     else if( d == 3 && e == 1){
  58.          cout << "Akmuo sulauzo zirkles, kompiuteris laimi!" << endl;
  59.          c++;
  60.          }
  61.     else if(d == 3 && e == 2){
  62.          cout << "Zirkles sukarpo popieriu, tu laimi!" << endl;
  63.          a++;
  64.          }
  65.     else if(d == 3 && e == 3){
  66.          cout << "Zirkles su zirklemis. Lygiosios!" << endl;
  67.          b++;
  68.          }
  69.          cout << "Laimejimai: " << a << endl;
  70.          cout << "Lygiosios: " << b << endl;
  71.          cout << "Pralaimejimai :" << c<< endl;
  72.          cout << "    " << endl;
  73.          cout << "Norint zaisti is naujo - spauskite raide y." << endl;
  74.          cout << "Iseiti is zaidimo - bet kuri kita raide." <<endl;
  75.          cin >> ch;
  76.          system("CLS");
  77.          }
  78.          while(ch == 'y');
  79.     return 0;
  80. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top