answersLogoWhite

0


Best Answer

1 22 333 4444 Any text editor is usable for that.

1 22 333 4444 But if your question was about printing this sequence for nth term, then:

#include

#include

void main()

{

int n,i,j;

clrscr();

printf("Enter the last limit\n");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

for(j=1;j<=i;j++)

{

printf("%d",i);

}

}scanf(" ");

getch();

}

Hey look the above code will print out the series up-to the nth limit which is inputed from the user.

If u use only puts() then u have limitation, i.e. u can't print the series up-to nth term in a normal way and generally this program appears in series up-to nth term.

Thank u.

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
TaigaTaiga
Every great hero faces trials, and you—yes, YOU—are no exception!
Chat with Taiga
More answers
User Avatar

Wiki User

14y ago

for (int i=1;i<6;i++) {

for (int k=0;k<i;k++)

print(i);

printnewline();

}

In PhP you would write something lime this;

<html>

<head>

<title>Exercise-2>

</head>

<body>

<?

{

for ($count =1; $count <10; $count++)

{

for ($newcount =0; $newcount<$count; $newcount++)

{

$answer = "$count<BR>";

{

echo "$answer";

}

}

}

}

?>

</body>

</html>

User Avatar

User Avatar

Wiki User

13y ago

#include<stdio.h>

int main()

{

int i=1,j,n;

printf("enter how many values\n"); //take input as "6"//

scanf("%d",&n);

while(n!=i)

{

for(j=1;j<=i;j++)

printf("%d",i);

printf(" ");

i++;

}

return 0;

}

User Avatar

User Avatar

Wiki User

11y ago

i dont know dear please give me ans of this problem

1

2 2

3 3 3

4 4 4 4

5 5 5 5 5

User Avatar

Add your answer:

Earn +20 pts
Q: 1 22 333 4444 how to create c program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How would you write a C program loop that outputs the values 4444 333 22 1?

int i = 4;while (i&gt;0) { for (int n=0; n&lt;i; ++n) { printf ("%d", i); } printf (" "); } printf ("\n");


What is the sequence of 122333444455555?

Each digit is repeated the number of times equal to its value. 1 22 333 4444 55555 666666 7777777 88888888 999999999


How do you write 55555 4444 333 22 1 in php?

This is one of possible solutions:


What is 4444 using exponents?

22 x 11 x 101 = 4444


1 22 333 4444 55555 i need a java program that generates a triangle with these numbers?

Implement this method: public static void makeTriangle(int limit) { int count = 0; for(int i = 1; i &lt;= limit; i++) { count = i; while(count &gt; 0) { System.out.print(i); count--; } System.out.println(); } }


C program to print 1 12 123 1234?

#include &lt;stdio.h&gt; int main (void) { puts ("1 22 333 4444 55555"); return 0; }


What is the program to print 1 22 333 4444?

#include&lt;iostream&gt; int main (void) { std::cout &lt;&lt; "1 22 333 444\n"; } To produce the text programmatically: #include&lt;iostream&gt; int main (void) { for (int num=1; num&lt;=4; ++num) { // the number to be printed for (int rep=1; rep&lt;=num; ++rep) { // the repetitions of that number std::cout &lt;&lt; num; } std::cout &lt;&lt; ' '; // space } std::cout &lt;&lt; '\n'; // new line }


What is 333-22?

355


C program to print the format 4 1 44 11 444 111 4444 1111 000000000 444444 3333 22 1?

#include &lt;stdio.h&gt; int main (void) { puts ("4 1 44 11 444 111 4444 1111 000000000 444444 3333 22 1"); return 0; }


What are numbers like 22 and 333?

22 and 333 are composite numbers.


Write a c sharp program to print 1 22 333 4444 55555 as right angle trianglr?

using System;namespace RightAngleTraingle{class Program{static void Main(string[] args){for (int x = 1; x


What is the product of 22 and 2?

the product of 22 by 2 is 4444