View Code of Problem 25

#include <iostream>
using namespace std;

int main(){
  int n;
  while(scanf("%d",&n)!=EOF){
    char a[n];
    for(int j=0;j<n;j++){
      scanf("%c",a[j]);
      printf("%c",a[j]+' ');
    }
  }
  return 0;
}

Double click to view unformatted code.


Back to problem 25