Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. main()
  4. {
  5. int i,n;
  6. int liczba[10];
  7. for(i=0;i<10;i++)
  8. {
  9. cout << "Podaj liczbe " << i+1 << ": ";
  10. cin >> liczba[i];
  11. }
  12. cout << endl;
  13. cout << "Podaj liczbe przez ktora chcesz pomnozyc liczby wprowadzone wczesniej: ";
  14. cin >> n;
  15. for(i=0;i<10;i++)
  16. {
  17. cout <<"Liczba " << i+1 << " po pomnozeniu to: "<< liczba[i]*n << endl;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement