Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Example program
- #include <iostream>
- #include <time.h>
- using namespace std;
- float liczba1, liczba2;
- int main()
- {
- srand(time(NULL));
- liczba1 = rand() % 451 + 50;
- liczba2 = rand() % 451 + 50;
- cout << "\nsuma: " << liczba1 << " + " << liczba2 << " = " << liczba1 + liczba2;
- cout << "\nroznica: " << liczba1 << " - " << liczba2 << " = " << liczba1 - liczba2;
- cout << "\niloczyn: " << liczba1 << " * " << liczba2 << " = " << liczba1 * liczba2;
- cout << "\niloraz: " << liczba1 << " / " << liczba2 << " = " << liczba1 / liczba2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement