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 the significance of an algorithm to C programming?
Is there a way to compare two structure variables?
Why do we need functions in c?
What is the difference between call by value and call by reference in c?
With the help of using classes, write a program to add two numbers.
what do you mean by enumeration constant?
What do you mean by recursion in c?
what is the basis for selection of arrays or pointers as data structure in a program
What is a node in c?
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
Explain what is the difference between a string and an array?
What is a structure and why it is used?
What is difference between constant pointer and constant variable?
Can you pass an entire structure to functions?
What are static variables in c?