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
Why are algorithms important in c program?
Explain how can you determine the size of an allocated portion of memory?
Explain what is the benefit of using const for declaring constants?
How do I round numbers?
Explain the use of bit fieild.
What is #pragma statements?
How can I read/write structures from/to data files?
What is nested structure?
What is an endless loop?
Explain what are global variables and explain how do you declare them?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
How many loops are there in c?
What is meant by type casting?
Explain how can I read and write comma-delimited text?