1
232
34543
4567654
can anyone tell me how to slove this c question
Answer Posted / vignesh1988i
#include<stdio.h>
#include<conio.h>
void main()
{
int n;
printf("enter the lines :");
scanf("%d",&n);
for(int i=0;i<n;i++)
{
printf("\n");
for(int j=i+1;j<=(2*n+1);j++)
printf("%d",j);
for(int k=2*i;k>i;k--)
printf("%d",k);
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
Why do we use null pointer?
What are the keywords in c?
What does != Mean in c?
Why we write conio h in c?
Can you think of a logic behind the game minesweeper.
Why clrscr is used after variable declaration?
What is the auto keyword good for?
What is a nested formula?
Write a program to use switch statement.
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
How can I recover the file name given an open stream or file descriptor?
What is selection sort in c?
What is indirection?
Write a program to check armstrong number in c?
why do some people write if(0 == x) instead of if(x == 0)?