View Code of Problem 54

//
//  main.c
//  a
//
//  Created by rex on 16/9/14.
//  Copyright © 2016年 rex. All rights reserved.
//

#include <stdio.h>
#include <string.h>

int main() {
    char temp;
    int k = 0;
    while(scanf("%c", &temp) != EOF) {
        if(k == 0)
            printf("%c", temp);
        else
            printf(" %c", temp);
        k++;
    }
    return 0;
}

Double click to view unformatted code.


Back to problem 54