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");
#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 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;
}
#include<stdio.h>
void main()
{printf("Your name\n");
}
#include<stdio.h>
void main()
{
puts("entre your name 10 times");
fflush(stdin);
}
for (int i=0; i<100; ++i) printf ("Your Name\n");
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
write c++ program to print your name
echo 'print a pattern'
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
write a program to print the series 1/12+1/22+.........+1/n2 ?
This is a directive, not a question.
#include
write a program to print A to Z on screen in c?
echo 'print a pattern'
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
write a program to print the series 1/12+1/22+.........+1/n2 ?
good morning
Yes.
This is a directive, not a question.
include <stdio.h> int main (void) { puts ("print"); return 0; }
You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.
#include
Write a c program to print the 100 to 1 nos
a triangle then a square :)