Untitled
unknown
plain_text
2 years ago
367 B
4
Indexable
#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; }
Editor is loading...
Leave a Comment