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
Why can arithmetic operations not be performed on void pointers?
What is the use of clrscr?
What does void main return?
How do I get an accurate error status return from system on ms-dos?
List the different types of c tokens?
What is pointers in c with example?
What is class and object in c?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Linked list is a Linear or non linear explain if linear how it working as a non linear data structures
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
How is a macro different from a function?
Explain what is the benefit of using const for declaring constants?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Can you please explain the difference between syntax vs logical error?