Thursday, 4 January 2018

How to get the input string from user (another way)

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.... 

No comments:

Post a Comment

Tik Tok ban?

Hello buddy's, it's good to see you. So, What happens to Tik Tok? Is Tik Tok ban? Here is the answer for everything. Madurai benc...