/* Write a C Program to show input and output of a string. */
===========================================
#include<stdio.h>
#include<conio.h>
void main()
{
char a[50];
clrscr();
printf(“enter any string\n: ”);
gets(a);
puts(a);
getch();
}
Output:
======
enter any string: hi everyone
hi everyone
===========================================
#include<stdio.h>
#include<conio.h>
void main()
{
char a[50];
clrscr();
printf(“enter any string\n: ”);
gets(a);
puts(a);
getch();
}
Output:
======
enter any string: hi everyone
hi everyone
No comments:
Post a Comment