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 is it important to memset a variable, immediately after allocating memory to it ?
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
Explain the bubble sort algorithm.
praagnovation
Are global variables static in c?
i have a written test for microland please give me test pattern
What is structure padding in c?
What is data structure in c language?
What is the benefit of using const for declaring constants?
What is the difference between struct and union in C?
Multiply an Integer Number by 2 Without Using Multiplication Operator
Why is C language being considered a middle level language?
Write a program to print factorial of given number without using recursion?
What is a struct c#?
What is d scanf?