answersLogoWhite

0


Best Answer

int main()

{

int i,j,sum,k;

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

{

k=1;

sum =0;

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

{

sum = sum+(i*k);

k=k*10;

}

cout<< sum;

cout<< "\n";

}

}

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

for (i=0; i<1; ++i) puts ("55555 6666 777 44 3");

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program to print the following output using for loop 1 2 2 333 4444 55555?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you assign output in C plus plus?

To have your program output to a file you must do the following :First you must write the library that allows the use of files#include This will allow you to use the necessary codes to input or output to filesThen in your program you write the following codeofstream outfile("statistic.txt");This declares the assigned file for output. Here statistic.txt is the assign file. The program will send the output to that file.To send the output to the assigned file instead of the screen do the following:Instead of "cout


How do you write a program with do while loop so that the output is 123456 equals 720?

How do you write a program with do while loop so that the output is 123456 =720


How do I write a program to do the following... Write a VBA code to take the TippingBucketData.txt file and process it to generate an output file.?

Without knowing the contents of the TippingBucketData.txt file nor how to process it, it would be impossible to say how such a program would be written.


Write a c program to have followiing as output?

void main() { printf("followiing"); }


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


Can you write hello world without operating system?

possible. You can write a small bios program in asm to output helloworld.


What is output if we don't write break statement in switch-case in c sharp?

This question cannot be generally answered, the output depends on the actual program.


Write a program which takes the gender and salary the age from user the program should calculate and display the following information you If gender is male and age is greater equals 18 then the tax?

Write a program which takes the gender and salary ,the age from user. the program should calculate and display the following information. i. If gender is male and age is greater &gt;=18,then the tax =5%of the salary. ii. If gender is female and age is &gt;=18,then tax=3%of salary. The program should display the output as follows: Gender = Age = Tax = Salary before tax = Salary after tax =


Write the program with flowchart do not cheat?

You have start diagram follow by input diagram and output diagram, then exit diagram.


Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


How do you capture the output of C program in to another C program?

HIYou can first include the 1st program in ur 2nd program using # include and then whatever be the output from frst it can be used in second program.pankajThat's what popen is good for. Read the manual.


Why are you interested in this degree program?

Write a two- paragraph explanation to address the following questions: Why are you interested in this program (education) and how do you expect to benefit from it?