answersLogoWhite

0


Best Answer

Any of the following are snippets of code providing some ways of doing it:

printf("1 2 3 4 5 6");

write(0, "1 2 3 4 5 6", 11);

puts("1 2 3 4 5 6");

for (i = 0; i++ < 5; printf("%d ", i);

printf("%d", i);

for (i = 0; ++i < 6; putchar(' ')) putchar('0' + i);

putchar('0' + i);

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you print in c 1 2 3 4 5 6?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

What is the subset of set A12345?

There are 64 subsets, and they are:{}, {A}, {1}, {2}, {3}, {4}, {5}, {A,1}, {A,2}, {A,3}, {A,4}, {A,5}, {1,2}, {1,3}, {1,4}, {1,5}, {2,3}, {2,4}, {2,5}, {3,4}, {3, 5}, {4,5}, {A, 1, 2}, {A, 1, 3}, {A, 1, 4}, {A, 1, 5}, {A, 2, 3}, {A, 2, 4}, {A, 2, 5}, {A, 3, 4}, {A, 3, 5}, {A, 4, 5}, {1, 2, 3}, {1, 2, 4}, {1, 2, 5}, {1, 3, 4}, {1, 3, 5}, {1, 4, 5}, {2, 3, 4}, {2, 3, 5}, {2, 4, 5}, {3, 4, 5}, {A, 1, 2, 3}, {A, 1, 2, 4}, {A, 1, 2, 5}, {A, 1, 3, 4}, {A, 1, 3, 5}, {A, 1, 4, 5}, {A, 2, 3, 4}, {A, 2, 3, 5}, {A, 2, 4, 5}, {A, 3, 4, 5}, {1, 2, 3, 4}, {1, 2, 3, 5}, {1, 2, 4, 5}, {1, 3, 4, 5}, {2, 3, 4, 5}, {A, 1, 2, 3, 4}, {A, 1, 2, 3, 5}, {A, 1, 2, 4, 5}, {A, 1, 3, 4, 5}, {A, 2, 3, 4, 5}, {1, 2, 3, 4, 5} {A, 1, 2, 3,,4, 5} .


What is -2 wholes 3 over 4 minus 1 over 4?

-2 3/4 - 1/4 = -(2 3/4 + 1/4) = -[2 (3+1)/4] = -(2 4/4) = -(2 + 1) = -3 or -2 3/4 - 1/4 = - (4*2 + 3)/4 - 1/4 = -11/4 - 1/4 = (-11 - 1)/4 = -12/4 = -3


What is 3 sixths minus 1 quarter?

3/6 x 2/2 = 6/12 1/4 x 3/3 = 3/12 6/12 - 3/12 = 3/12 = 1/4 Answer: 1 quarter ------------------------------------- 3/6 - 1/4 = (1&times;3)/(2&times;3) - 1/4 = 1/2 - 1/4 = (1&times;2)/(2&times;2) - 1/4 = 2/4 - 1/4 = 1/4


What is 3 and 3 4ths - 1 and 1 4ths equal?

3 3/4 - 1 1/4 = 2 2/4 = 2 1/2 15 / 4 - 5/ 4 = 10/ 4 = 2 2/ 4 = 2 1/2


How many ways can three numbers add up to ten?

1 4 5 1 3 6 2 4 4 6 3 1 8 1 1 3 3 4 1 2 7 2 3 5 4 1 5 5 1 4 1 5 4 6 3 1 1 1 8 7 2 1 4 3 3 3 4 3 5 3 2 2 5 3 5 4 1 6 1 3 1 6 3 2 1 7 1 7 2 1 8 1 4 4 2 4 2 4 2 7 1 4 5 1

Related questions

Write a program to Print pyramid of numbers using java?

hi question is here, 1 1 2 1 2 3 1 2 3 4


Write a java program to print the following output using the for loop 1 2 2 3 3 3 4 4 4 4 5 5 5 5 5?

12345 1234 123 12 1


How many different combinations can you make with 2 4s 1 3 and 1 2?

1 1 1 2 1 3 1 4 2 1 2 2 2 3 2 4 3 1 3 2 3 3 3 4 4 1 4 2 4 3 4 4


How do you get the answer 7 using only numbers -4-3-2-1?

[(-4) + (-3)]*[(-2 - (-1)] = (-4 -3)*(-2 + 1) = -7*-1 = +7[(-4) + (-3)]*[(-2 - (-1)] = (-4 -3)*(-2 + 1) = -7*-1 = +7[(-4) + (-3)]*[(-2 - (-1)] = (-4 -3)*(-2 + 1) = -7*-1 = +7[(-4) + (-3)]*[(-2 - (-1)] = (-4 -3)*(-2 + 1) = -7*-1 = +7


What is the blue print of economics for class 12th of CBSE Board?

Unit 1 1 (1) 3 (1) - 4 (2) 2. Unit 2 1 (2) 3 (2) 4 (1) 6(1) 18 (6) 3. Unit 3 1 (1) 3 (1) 4 (2) 6 (1) 18 (5) 4. Unit 4 1 (1) 3 (1) 6 (1) 10 (3) 5. Unit 6 - 3 (3) 6 (1) 15 (4) 6. Unit 7 1 (2) - 6 (1) 8 (3) 7. Unit 8 1 (2) 4 (1) 6 (1) 12 (4) 8. Unit 9 - 4 (2) - 8 (2) 9 Unit 10 1 (1) 3 (2) - 7 (3) Sub-Total 10 (10) 30 (10) 24 (6) 36 (6)


What is the subset of set A12345?

There are 64 subsets, and they are:{}, {A}, {1}, {2}, {3}, {4}, {5}, {A,1}, {A,2}, {A,3}, {A,4}, {A,5}, {1,2}, {1,3}, {1,4}, {1,5}, {2,3}, {2,4}, {2,5}, {3,4}, {3, 5}, {4,5}, {A, 1, 2}, {A, 1, 3}, {A, 1, 4}, {A, 1, 5}, {A, 2, 3}, {A, 2, 4}, {A, 2, 5}, {A, 3, 4}, {A, 3, 5}, {A, 4, 5}, {1, 2, 3}, {1, 2, 4}, {1, 2, 5}, {1, 3, 4}, {1, 3, 5}, {1, 4, 5}, {2, 3, 4}, {2, 3, 5}, {2, 4, 5}, {3, 4, 5}, {A, 1, 2, 3}, {A, 1, 2, 4}, {A, 1, 2, 5}, {A, 1, 3, 4}, {A, 1, 3, 5}, {A, 1, 4, 5}, {A, 2, 3, 4}, {A, 2, 3, 5}, {A, 2, 4, 5}, {A, 3, 4, 5}, {1, 2, 3, 4}, {1, 2, 3, 5}, {1, 2, 4, 5}, {1, 3, 4, 5}, {2, 3, 4, 5}, {A, 1, 2, 3, 4}, {A, 1, 2, 3, 5}, {A, 1, 2, 4, 5}, {A, 1, 3, 4, 5}, {A, 2, 3, 4, 5}, {1, 2, 3, 4, 5} {A, 1, 2, 3,,4, 5} .


What is -2 wholes 3 over 4 minus 1 over 4?

-2 3/4 - 1/4 = -(2 3/4 + 1/4) = -[2 (3+1)/4] = -(2 4/4) = -(2 + 1) = -3 or -2 3/4 - 1/4 = - (4*2 + 3)/4 - 1/4 = -11/4 - 1/4 = (-11 - 1)/4 = -12/4 = -3


How many halfs in 3 quarters?

one and a half 1/2 = 2/4 half of 2/4 = 1/4 2/4 + 1/4 = 3/4 ------------------------------------------- 3/4 &divide; 1/2 = 3/4 &times; 2/1 = (3&times;2)/(4&times;1) = 6/4 = 3/2 = 1&frac12;


4-3-3 2-1-4 3-2-1 1-2-4 2-2-4 4-4-5 O 2-3-65-1-3 1-3-2 6-2-5 1-4-3 Z C 4-2-2 3-3-2 2-3-3 4-3-7?

hdbefaioearhgiuqgiiiiiiiiiiiiiiiiiiiiiiiiiiiiifvrnnnnbaqhfiuqehifhfuohyq38hfrusbvueqhfiuahfuihfrieuhfdiusuhqiufhifuhiahiehfihfurhuioahefiwheiwhdiuhiheiwhfeghuhfijeiund


What is 1 and 1 over 4 subtracted by 3 over 4?

1 1/4 - 3/4 = (1&times;4+1)/4 - 3/4 = 5/4 - 3/4 = (5-3)/4 = 2/4 = (1&times;2)/(2&times;2) = 1/2


What are the answers to the only use one two three four to get 1 to 100?

1=1 2=2 3=3 4=4 5=4+1 6=4+2 7=4+3 8=4+4 9=4+4+1 or 3+3+3 10=1+2+3+4 now 11 of course is 10 + 1 so 11=1+2+3+4+1 12 is =1+2+3+4+2 13=1+2+3+4+3 and so on 20=2*(1+2+3+4) 21 =(2*(1+2+3+4))+1 and so on and 100=(1+2+3+4)*(1+2+3+4)


What is 3 sixths minus 1 quarter?

3/6 x 2/2 = 6/12 1/4 x 3/3 = 3/12 6/12 - 3/12 = 3/12 = 1/4 Answer: 1 quarter ------------------------------------- 3/6 - 1/4 = (1&times;3)/(2&times;3) - 1/4 = 1/2 - 1/4 = (1&times;2)/(2&times;2) - 1/4 = 2/4 - 1/4 = 1/4