General

PROGRAM TO USE gets() AND puts() TO ENTER AND PRINT YOUR NAME

/* PROGRAM TO USE gets() AND puts() TO ENTER AND PRINT YOUR NAME */

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

void main()
{
char name[50];
clrscr();
printf(“\n\n ENTER YOUR NAME : “);
gets(name);
printf(“\n\n YOUR NAME IS : “);
puts(name);
getch();
}

ANIL VERMA
Hello Everyone, Welcome to A. V. Powertech.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.