Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Autor: Pawel Koniarski
- // Data: 21 wrzesnia 2013 r.
- // Problem: Oblicz iloczyn 10 liczb caลkowitych
- // Plik: iloczyn10.cpp
- #include <iostream>
- using namespace std;
- int main()
- {
- int i, d, iloczyn;
- iloczyn = 1;
- cout << "Podaj 10 liczb calkowitych, ktorych iloczyn chcesz uzyskac: ";
- for(i = 0; i < 10; i++)
- {
- cin >> d;
- iloczyn *= d;
- }
- cout << "\n\n" << iloczyn << "\n\n";
- cin.sync();
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement