Program in C language :3(Another way)
#include<stdio.h>
#include<conio.h>
void main()
{
char s[20];
clrscr();
printf("Enter your name:");
gets(s);
printf("your name is:");
puts(s);
getch();
}
OUTPUT :
your name is:
ex:
Enter your name:Karthick raja
your name is:Karthick raja
The above example is another way of getting input from user and execute. If you have any mistake or doubt in that,comment below....
#include<stdio.h>
#include<conio.h>
void main()
{
char s[20];
clrscr();
printf("Enter your name:");
gets(s);
printf("your name is:");
puts(s);
getch();
}
OUTPUT :
your name is:
ex:
Enter your name:Karthick raja
your name is:Karthick raja
The above example is another way of getting input from user and execute. If you have any mistake or doubt in that,comment below....
No comments:
Post a Comment