PROGRAM TO PRINT YOUR NAME USING FUNCTION

Programming Languages

/* PROGRAM TO PRINT YOUR NAME USING FUNCTION */

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

void name();
void main()
{
clrscr();
name();
getch();
}
void name()
{
char a[100];
printf(“\n\n\t\tENTER THE NAME : “);
gets(a);
printf(“\n\n\t\tYOUR NAME IS : “);
puts(a);
}

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.