View Code of Problem 54

#define _CRT_SECURE_NO_DEPRECATE
#include <iostream>
#include<stdio.h>
#include<string>
#include<string.h>
using namespace std;
int main()
{
	char c[20];
	cin >> c;
	int len = strlen(c);
	for (int i = 0; i < len; i++) {
		if (i != len - 1) {
			printf("%c ", c[i]);
		}
		else 
			printf("%c", c[i]);

	}

}

Double click to view unformatted code.


Back to problem 54