Wednesday, 3 January 2018

How to get the input from user and execute

Program in C language :2

#include<stdio.h>
#include<conio.h>

void main()
{
char c[20];
printf("Enter your name");
scanf("%s", c);
printf("Your name is:%s",c);
getch();
}

OUTPUT:
Your name is:___

  The above program is to get input string from user and execute. It is simple program in C language. If there is any mistake or doubts, drop your comments. 

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