write a program whose output will be-
1
12
123
1234
Answer Posted / chaitanya
#include<stdio.h>
void main()
{
int s,i,j,n=1;
printf("enter the length of the sequence
");
scanf("%d",&s);
for(i=1;i<=s;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
printf(" ");
}
}
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
How can I get random integers in a certain range?
What is LINKED LIST? How can you access the last element in a linked list?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is advantage of pointer in c?
Combinations of fibanocci prime series
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is an example of structure?
What are local static variables?
What is actual argument?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Explain what are compound statements?
Which one would you prefer - a macro or a function?