Write a program to print the following : 1 12 123 1234 12345

Write a program to print the following : 1 12 123 1234 12345

program:

#include<stdio.h>

int main()

{

int a,b;

for(a=1; a<6;a++)

{

for(b=1; b<a;b++)

{

printf("%d",b);
}

printf("n");
}

}


output:

1

12

123

1234

12345

Read More →
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!