wap to input the name and age of a person and print the name as many times as age.
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{int a,b,c;
char name[100];
printf("enter the name and age ");
scanf("%s%d",name,&a);
for(b=1;b<=a;b++)
printf("\n%s",name);
getch();
}
No comments:
Post a Comment