Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1.            
  2.         if (o==1)
  3.         {
  4.         cout<<"Podaj dwie liczby:"<<endl;
  5.         cin>>x;
  6.         cin>>y;
  7.         {wynik=x+y;}
  8.         }
  9.        
  10.         if (o==2)
  11.         {
  12.         cout<<"Podaj dwie liczby:"<<endl;
  13.         cin>>x;
  14.         cin>>y;
  15.         {wynik=x*y;}
  16.         }
  17.            
  18.         if(o==3)
  19.         cout<<"Podaj dwie liczby:"<<endl;
  20.         cin>>x;
  21.         cin>>y;
  22.         {wynik=x-y;}
  23.            
  24.         if(o==4)
  25.         cout<<"Podaj dwie liczby:"<<endl;
  26.         cin>>x;
  27.         cin>>y;
  28.         {wynik=x/y;}
  29.        
  30.         if(o==5)
  31.         cout<<"Podaj liczbe:"<<endl;
  32.         cin>>x;
  33.         {wynik=sqrt(x);}
  34.        
  35.    
  36.         if(o==6)
  37.         cout<<"Podaj dwie liczby:"<<endl;
  38.         cin>>x;
  39.         cin>>y;
  40.         {wynik=pow(x,y);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement