Answer Posted / nayan soni
#include <stdio.h>
#include <conio.h>
void main()
{
int count = 1;
for(int i = 1;i <= 3;i++)
{
for(int j = 1;j <= i;j++)
{
printf("%d ", count);
count++;
}
printf("\n");
}
getch();
}
It works perfectly.. Tested by running the program..
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why isnt any of this standardized in c?
Write a program to reverse a string.
Is it better to bitshift a value than to multiply by 2?
What 'lex' does?
What are multidimensional arrays?
Tell me the use of bit field in c language?
Difference between linking and loading?
How reliable are floating-point comparisons?
Explain the difference between #include "..." And #include <...> In c?
How can I read a binary data file properly?
What is a list in c?
Explain the difference between strcpy() and memcpy() function?
What is clrscr ()?
What is void main () in c?
How to get string length of given string in c?