View Code of Problem 77

#include<bits/stdc++.h>
using namespace std;


int main() {
	char  a[4];
	for (int i = 0; i < 4; i++) {
		cin >> a[i];
	}
	for (int i = 0; i < 4; i++) {
		if (i != 3) {
			cout << a[i] << " ";
		}
		else {
			cout << a[i];
		}
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 77