Friday, June 20, 2014

Get String and Print string

#include<stdio.h>
int main()
{
  char c1[100],c2[100],c3[100],c4[100];
  puts("Enter Name of 1st City : ");
  gets(c1);
  puts("Enter Name of 2nd City : ");
  gets(c2);
  puts("Enter Name of 3rd City : ");
  gets(c3);
  puts("Enter Name of 4th City : ");
  gets(c4);
  printf("\n\n\n\n\n");
  puts(c1);
  puts(c2);
  puts(c3);
  puts(c4);

}

No comments:

Post a Comment