Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
367 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int mas1[100];
	int mas2[100];
	int mas3[100];
	int a, h;
	cin >> h;
	a = 0;
	while (a < h)
	{
		cin >> mas1[a];
		a++;
	}
	a = 0;
	while (a < h)
	{
		cin >> mas2[a];
		a++;
	}
	a = 0;
	while (a < h)
	{
		mas3[a] = mas1[a] + mas2[a];
		cout << mas3[a] << endl;
		a++;
	}
	return 0;
}
Leave a Comment