Answers for "how to add a number after each number in an array with a for loop in C++"

C++
0

how to add a number after each number in an array with a for loop in C++

#include<iostream>
	using namespace std;

	int main()
	{
		int a[4];
		int i;

		for ( i = 0; i < 4; i++ )
			a[i] = 0;
		for ( i = 0; i < 4; i++ )
			cout << a[i] << '\n';
		return 0;
	}
Posted by: Guest on November-24-2019

Code answers related to "how to add a number after each number in an array with a for loop in C++"

Browse Popular Code Answers by Language