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