Tuesday 1 October 2013

c program to read and print a line of text using scanf and printf

#include<stdio.h>
void main()
{
char a[50];
clrscr();
printf("enter text");
scanf("%s",a);
printf("%s",a);
getch();
}

No comments:

Post a Comment