0% found this document useful (0 votes)
25 views1 page

Exer1 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Exer1 2

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

/* Problem Statement: Enter your name and a number

then print that number of copies of your name.*/

#include <stdio.h>

int main(){

int num,i;

char name[20];

printf("Enter your name: ");

scanf("%s", &name);

printf("Enter a number: ");

scanf("%d", &num);

for(i=0;i<num;i++){

printf("%s\n", name);

return 0;

You might also like