Write a program to produce the following output:
1
2 3
4 5 6
7 8 9 10
Answer / ashok kumar
void main()
{
int n,i,j,k=1;
clrscr();
printf("\n Enter a number : ");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=i;j<n;j++)
printf(" ");
for(j=1;j<=i;j++)
printf(" %d ",k++);
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 31 Yes | 19 No |
how many times does the loop iterated ? for (i=0;i=10;i+=2) printf("Hi\n");
Explain the importance and use of each component of this string: Foo.Bar, Version=2.0.205.0, Culture=neutral, PublicKeyToken=593777ae2d274679d
compare array with pointer?
Why C language is a procedural language?
#‎include‬<stdio.h> void main() { int i; for(i=5;0;i++) { printf("%d",i); } }
marge linklist
Multiply an Integer Number by 2 Without Using Multiplication Operator
What is Lazy evaluation in C? Give an example.
What is memmove?
Can the sizeof operator be used to tell the size of an array passed to a function?
what r the cpu registers r ther?
How to swap two values using a single variable ? condition: Not to use Array and Pointer ?