Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
400 B
7
Indexable
Never
#include <iostream>
using namespace std;

intt main() {
	int count = 0;
	int arr[5][5];
	for(int i = 0; i < 5;i++) {
		if(i%2 == 0) {
			for (int j = 0; j < 5; j++) {
				arr[i][j] = count++;
			}
		else {
			for(int j = 4; j <= 0; j++) {
				arr[i][j] = count++;
			}
		}
	}
	for(int i = 0; i < 5;i++) {
		for(int j = 0; j < 5;j++) {
			count << arr[i][j];
		}
	}
	return 0;
}
Leave a Comment