answersLogoWhite

0


Best Answer

printf ("12345 1234 123 12 1\n");

... or, did you mean to do it with loops ? ...

int i, j;

for (i=5; i>0; i--) {

for (j=1; j<=i; j++) printf ("%d", j);

printf (" ");

}

printf ("\n");

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you get the output12345 1234 123 12 1?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

1+4=12+5=1234+123=?

by:jason pin Jason4


C program to print 1 12 123 1234?

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


To generate tha following series 1 12 123?

the next one is 1234


How do you make a house using turbo c?

1 12 123 1234 12345


What is the answer of 1 plus 12 plus 123 plus 1234 plus 12345 plus 123456 plus 1234567 plus 12345678 plus 123456789 plus 12345678910 plus 1234567891011 plus 123456789101112?

1+12+123+1234+12345+123456+1234567+12345678+123456789+12345678910+1234567891011+123456789101112 =124703839845238 All the operations are addition so all the addition can happen in one step.


If 123 Centimeters what is the height in meters?

100 cm = 1 m &rArr; 1234 cm = 1234 &divide; 100 m = 12.34 m


What are the release dates for The Electric Company - 1971 123 1-123?

The Electric Company - 1971 123 1-123 was released on: USA: 12 April 1972


What is 1.14?

Pokemon number 114 is Tangela.


What times what equals 1234?

2&times;617, 1&times;1234


How do you separate digits in c plus plus?

Repeatedly divide the number by 10 and store the remainder (the modulo). By way of an example, if the number were 12345: 12345 % 10 = 5 (first digit) 12345 / 10 = 1234 1234 % 10 = 4 (second digit) 1234 / 10 = 123 123 % 10 = 3 (third digit) 123 / 10 = 12 12 % 10 = 2 (fourth digit) 12 / 10 = 1 (fifth digit) This algorithm forms the basis of number reversals. The following function demonstrates the most efficient way of reversing any number in the range -2,147,483,648 to 2,147,483,647, inclusive. int RevNum( int num ) { const int base = 10; int result = 0; int remain = 0; do { remain = num % base; result *= base; result += remain; } while( num /= base); return( result ); }


How many feet in 123 inches?

12 inches= 1 foot 123 inches = 10feet 3inches


How many yards is 123 inches?

36 in = 1 yd &rArr; 123 in = 123 &divide; 36 yds = 35/12 yds &asymp; 3.42 yds