Facebook
From Eratic Wigeon, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 128
  1. #include "cmath"
  2. #include "conio.h"
  3. #include "iostream"
  4.  
  5.  
  6. using namespace std;
  7. int main()
  8. {
  9.     int a,b;
  10.      
  11.     cout << "Wprowadz a:";
  12.     cin >> a;
  13.     cout << "Wprowadz b:";
  14.     cin >> b;
  15.  
  16.     if (a%b == 0)
  17.     {
  18.  
  19.         cout << "Liczba a podzielna przez b";
  20.     }
  21.     else
  22.  
  23.     {
  24.         float c;
  25.         c = (a / b);
  26.         cout << c;
  27.     }
  28.      
  29.      
  30.  
  31.     _getch();
  32.     return 0;
  33. }