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
What does *p++ do?
What is the use of #define preprocessor in c?
What is the purpose of void pointer?
What does the error message "DGROUP exceeds 64K" mean?
Tell me the use of bit field in c language?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Why is sprintf unsafe?
What are the 5 organizational structures?
Explain the difference between null pointer and void pointer.
What are void pointers in c?
Tell me is null always defined as 0(zero)?
What is function in c with example?
Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
Difference between goto, long jmp() and setjmp()?
Explain the use of keyword 'register' with respect to variables.