SHARE
TWEET

Untitled

a guest Oct 17th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main() {
  8.    
  9.    
  10.  int padaj liczbe(void);
  11.  void dzielenie(int, int);
  12.    
  13.    
  14.    
  15.    
  16.     dzielenie(podaj liczbe()), podaj liczbe())
  17.     int a;
  18.     float b;
  19.     cout<<"Padaj liczbe 1 :";
  20.     cin>>a;
  21.     cout<<"Padaj liczbe 2 :";
  22.     cin>>b;
  23.    
  24.     if(b==0){
  25.         cout<<"Blad, nie mozna dzielic przez 0"<<endl;
  26.     }else{
  27.         float c=float(a)/b;
  28.         cout<<"wynik to :"<<c<<endl;
  29.     }
  30.    
  31.    
  32.    
  33.    
  34.    
  35.    
  36.     return 0;
  37. }
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