View Code of Problem 54

#include<iostream>
#include<string.h>
using namespace std;
int main()
{
   char a[1000];
   gets(a);
   for(int i=0;i<strlen(a)-1;i++)
   {
   	cout<<a[i]<<" ";
   }
   cout<<a[strlen(a)-1];
   return 0;
 } 

Double click to view unformatted code.


Back to problem 54