Program to output as below formate:
1
2 3
4 5 6
7 8 9 10
Answer Posted / koushik sarkar
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1,j,k;
clrscr();
for(j=0;j<4;j++)
{
for(k=0;k<=j;k++)
{
printf("%d "",i);
i++;
}
printf("\n");
}
getch();
}
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is a byte string?
Difference between current previous versions of Java?
Howto get an object that will perform date & time calculations then format it for output in some different locales with different date style.can ne1 tel me the answer of this question.pls
What is ordered map in java?
What is parsing and its types?
What does opcode mean?
Why main() method is public, static and void in java ?
what is meant by HQL?
What are the actions that can occur when a thread enters blocked state?
Explain super keyword in java.
What is fundamental datatype?
Can an interface implement another interface?
What is mysql driver class name?
What is the use of optional ?
What is token in java?