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


Please Help Members By Posting Answers For Below Questions

Why is it important to memset a variable, immediately after allocating memory to it ?

1546


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

712


Explain the bubble sort algorithm.

636


praagnovation

1771


Are global variables static in c?

664






i have a written test for microland please give me test pattern

2173


What is structure padding in c?

618


What is data structure in c language?

598


What is the benefit of using const for declaring constants?

579


What is the difference between struct and union in C?

564


Multiply an Integer Number by 2 Without Using Multiplication Operator

314


Why is C language being considered a middle level language?

648


Write a program to print factorial of given number without using recursion?

563


What is a struct c#?

597


What is d scanf?

580