Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
349 B
0
Indexable
Never


#include <iostream>
using namespace std;
int main()
{
	int n = 5;
	int a, b, c, d, e;
	int tab[5];

	cout << "podaj liczbe pieć liczb";
	cin >> a;
	cin >> b;
	cin >> c;
	cin >> d;
	cin >> e;

	tab[1] = a;
	tab[2] = b;
	tab[3] = c;
	tab[4] = d;
	tab[5] = e;

	for(int i=1;i<=5;i++)
	{
		cout << tab[i] << " ";
	}


}
Leave a Comment