daily pastebin goal
6%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top