progrem to generate the following series
1
12
123
1234
12345
Answer Posted / f.hnayan
#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
for(a=0;a<=4;a++)
{
for(b=1;b<=(a+1);b++)
{
printf("%d\t",b);
}
printf("\n");
}
return 0;
}
| Is This Answer Correct ? | 11 Yes | 5 No |
Post New Answer View All Answers
Which is best linux os?
How can a program be made to print the line number where an error occurs?
Can you tell me how to check whether a linked list is circular?
What is double pointer in c?
How can I do graphics in c?
What is a loop?
What is the stack in c?
how do you programme Carrier Sense Multiple Access
Explain how do you search data in a data file using random access method?
What is the purpose of sprintf?
Is there a way to switch on strings?
In C language, a variable name cannot contain?
What is meant by high-order and low-order bytes?
What are the storage classes in C?
What is openmp in c?