Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- cout << "Podaj pierwsza liczbe wieksza od zera: " << endl;
- int a;
- cin >> a;
- cout << "Podaj druga liczbe wieksza od zera: " << endl;
- int b;
- cin >> b;
- if (b == 0)
- {
- cout << "Nie mozna dzielic przez 0!" << endl;
- }
- else
- {
- cout << a / b << endl;
- }
- return a / b;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement