write a program whose output will be-
1
12
123
1234
Answer Posted / aditya nath
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 18 Yes | 12 No |
Post New Answer View All Answers
What is modifier & how many types of modifiers available in c?
In c language can we compile a program without main() function?
Is r written in c?
What is a program flowchart and explain how does it help in writing a program?
What is the best style for code layout in c?
which is an algorithm for sorting in a growing Lexicographic order
What library is sizeof in c?
Can we change the value of constant variable in c?
What is the difference between if else and switchstatement
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What is the meaning of typedef struct in c?
What is a void pointer in c?
What is the function of multilevel pointer in c?
What is sorting in c plus plus?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }