Advertisement
Guest User

Untitled

a guest
Mar 18th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. main()
  4. {
  5. int n,s;
  6. int * liczba = new int[n];
  7. cout << "Podaj rozmiar tablicy: ";
  8. cin >> n;
  9. int i = 0;
  10. do
  11. {
  12. cout << "Podaj liczbe numer " << i+1 <<":" << endl;
  13. cin >> liczba[i];
  14. i++;
  15. } while (i<n);
  16. cout << "Tablica zostanie pomnozona o dana liczbe. Podaj ja: ";
  17. cin >> s;
  18. i = 0;
  19. do
  20. {
  21. cout << "Przemnozona liczba " << i+1 << " to: " << liczba[i] << endl;
  22. i++;
  23. } while (i<n);
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement