12345
1234
123
12
1

Answer Posted / prachi

#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d", i);
}
printf("\n");
}
getch();
}

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a macro in c preprocessor?

631


What is the heap?

685


write a program to print largest number of each row of a 2D array

1872


Disadvantages of C language.

662


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

2860






hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1444


Differentiate between declaring a variable and defining a variable?

607


List a few unconditional control statement in c.

560


Explain what are the different data types in c?

761


Explain modulus operator. What are the restrictions of a modulus operator?

600


What is a pointer on a pointer in c programming language?

621


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

764


What is maximum size of array in c?

584


What is the difference between struct and union in C?

574


Differentiate Source Codes from Object Codes

822