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
What is n in c?
What are the 4 types of organizational structures?
Are c and c++ the same?
Why does not c have an exponentiation operator?
What is sizeof int?
What is spaghetti programming?
What is volatile keyword in c?
What is the use of bit field?
Can we declare variables anywhere in c?
how logic is used
What is d scanf?
What are external variables in c?
What is return in c programming?
How can I change their mode to binary?
How do you print an address?