Untitled

 avatar
unknown
c_cpp
a year ago
462 B
4
Indexable
using namespace std;

#include <iostream>
#include <iostream>
#include <stdio.h>
#include <string>
#include <ctime>
#include <fstream>

void pisun(int mass[], int& n) {
	cin >> n;
	int a;

	for (int i = 0; i < n; i++)
	{
		cin >> a;
		
		mass[i] = a;
		
	}
}


int main()
{
	int mass[111];
	int n;
	pisun(mass, n);
	for (int i = 0; i < n; i++) {
		cout << "mass["<<i<<"]"<<"-"<<mass[i]<<"\n";
	}
	{

	}
	

	
	
}



     
Editor is loading...
Leave a Comment