View Code of Problem 77

#include<iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cmath>
using namespace std;


int main() {
	char s[100];
	for (int i = 0; i < 4; i++) {
		scanf("%c", &s[i]);
	}
	for (int i = 0; i < 4; i++) {
		if (i == 0)
			printf("%c", s[i]);
		else
			printf(" %c", s[i]);
	}
	return 0;
}	

Double click to view unformatted code.


Back to problem 77