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
Write a program to reverse a linked list in c.
State the difference between realloc and free.
Who is the founder of c language?
What are formal parameters?
What are # preprocessor operator in c?
What is a volatile keyword in c?
Explain the difference between null pointer and void pointer.
When is a “switch” statement preferable over an “if” statement?
How can you call a function, given its name as a string?
What do you mean by a sequential access file?
Explain can static variables be declared in a header file?
When should I declare a function?
What are the advantages of the functions?
How can I open files mentioned on the command line, and parse option flags?
Explain what header files do I need in order to define the standard library functions I use?