Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
516 B
0
Indexable
Never
#include <iostream>
#include <cmath>
#include <string>
#include <windows.h>
using namespace  std;

int mein(int f[], int f2[], int f3[])
{
	cout << ' ' << endl;
	for (int i = 0; i < 10; i++)
	{
		f3[i] = f[i] + f2[i];
		cout << f3[i] << endl;
	}

	return 0;
}

int main()
{
	int f[10] = {};
	for (int h = 0; h < 10; h++)
	{
		cin >> f[h];
	}

	cout << ' ' << endl;

	int f2[10] = {};
	for (int h = 0; h < 10; h++)
	{
		cin >> f2[h];
	}

	int f3[10] = {};

	mein(f, f2, f3);

}
Leave a Comment