Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- main()
- {
- int i,n;
- int liczba[10];
- for(i=0;i<10;i++)
- {
- cout << "Podaj liczbe " << i+1 << ": ";
- cin >> liczba[i];
- }
- cout << endl;
- cout << "Podaj liczbe przez ktora chcesz pomnozyc liczby wprowadzone wczesniej: ";
- cin >> n;
- for(i=0;i<10;i++)
- {
- cout <<"Liczba " << i+1 << " po pomnozeniu to: "<< liczba[i]*n << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement