answersLogoWhite

0


Best Answer

Duhh..

printf("hello ");

printf("hello ");

printf("hello ");

printf("hello ");

printf("hello ");

printf("hello ");

printf("hello ");

printf("hello ");

printf("hello ");

Just kidding.

Just loop the printing.

int x = 0;

for(x = 0; x<11; x++)

{

printf("hello ");

}

and if you want each "hello" to be in a new line, use this:

printf("hello\n");

User Avatar

Wiki User

βˆ™ 14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 14y ago

#include
#include
main()
{
int count;
char nam[9999];
clrscr();
printf("\n Enter your name : ");
scanf("%s",nam);
for (count=1;count<=100;count++)
{
printf("\n %c",nam);
}
getch();
}

/*comment - You may no use \n in the second printf if u don't want the name to printed in a new line everytime....also u can rewrite it as printf( "\n%d. %c",count,nam); if u want to number the no. of times the name is printed*/

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 14y ago

// This program wil read in a full name and print it ten times

#include <iostream>

using namespace std;

int main()

{

int i;

string full_name;

cout <<" Enter a name ";

getline(cin,full_name);

for (i=0;i<10;i++)

cout <<endl<<full_name;

return 0;

}

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 11y ago

#include<stdio.h>

void main()

{printf("Your name\n");

}

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 12y ago

#include<stdio.h>

void main()

{

puts("entre your name 10 times");

fflush(stdin);

}

This answer is:
User Avatar

User Avatar

Wiki User

βˆ™ 7y ago

for (int i=0; i<100; ++i) printf ("Your Name\n");

This answer is:
User Avatar

User Avatar

Learn bay

Lvl 8
βˆ™ 2y ago

To print your Name or Address we can use Same C Print Function (printf()) for both. [ printf(β€œName and Addressβ€œ); ].

To learn more about data science please visit- Learnbay.co

This answer is:
User Avatar

User Avatar

Anonymous

Lvl 1
βˆ™ 3y ago

write c++ program to print your name

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write a C program to print your name one hundred times?
Write your answer...
Submit
Still have questions?
magnify glass
imp