Facebook
From Edgy Parrot, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 274
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<math.h>
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8.         char x;
  9.         float c;
  10.         double a, b, m, n, o;
  11.  
  12. etap1:
  13.        
  14.         cout << "Kalkulator by Rednowski. Mozliwe opcje: " <<endl;
  15.         cout <<"+ dodawanie"<<endl;
  16.         cout <<"- odejmowanie"<<endl;
  17.         cout <<"* mnozenie"<<endl;
  18.         cout <<"/ dzielenie"<<endl;
  19.         cout <<"! silnia"<<endl;
  20.         cout <<"p pierwiastek"<<endl;
  21.         cout <<"z potega"<<endl;
  22.         cout <<"k NWD"<<endl;
  23.         cout <<"e wyjscie z programu"<<endl;
  24.         cout <<"c wyczysc ekran"<<endl;
  25.        
  26.        
  27.        
  28. do
  29. {
  30.        
  31.         cout <<"Wybierz opcje: "<<endl;
  32.         cin >>x;
  33.        
  34.                 if(x=='c')
  35.                 {
  36.                         system("cls");
  37.                         goto etap1;
  38.                 }
  39.                 if(x=='e')
  40.                 return (0);
  41.                
  42.                
  43. }
  44.  
  45.  
  46. }
  47.