progrem to generate the following series
1
12
123
1234
12345
Answer Posted / sachin
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,row;
clrscr();
printf("
How many rows
");
scanf("%d",&row);
for(i=1;i<=row;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf("
");
}
getch();
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Explain pointer. What are function pointers in C?
Why do we need volatile in c?
Explain function?
Why is it that not all header files are declared in every C program?
what is the significance of static storage class specifier?
Explain what is the general form of a c program?
what is the function of pragma directive in c?
How to establish connection with oracle database software from c language?
c language interview questions & answer
Who invented bcpl language?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is a good data structure to use for storing lines of text?
Which is better pointer or array?