Program in C language:
#include<stdio.h>
#include<conio.h>
void main()
{
char c[20];
int n,i;
clrscr();
printf("Enter the number =");
scanf("%d",&n);
printf("Enter your name=");
scanf("%s",c);
for(i=1;i<=n;i++)
{
printf("Your name is=%s\n") ;
}
getch();
}
OUTPUT:for an example
Enter the number =3
Enter your name =karthick
Your name is=karthick
Your name is=karthick
Your name is=karthick
The above program is execute your names number of times. If there is any mistake or doubt in this program, comment below.
SUPPORT&SHARE!!!!
#include<stdio.h>
#include<conio.h>
void main()
{
char c[20];
int n,i;
clrscr();
printf("Enter the number =");
scanf("%d",&n);
printf("Enter your name=");
scanf("%s",c);
for(i=1;i<=n;i++)
{
printf("Your name is=%s\n") ;
}
getch();
}
OUTPUT:for an example
Enter the number =3
Enter your name =karthick
Your name is=karthick
Your name is=karthick
Your name is=karthick
The above program is execute your names number of times. If there is any mistake or doubt in this program, comment below.
SUPPORT&SHARE!!!!
The bove
No comments:
Post a Comment