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 check prime number in c programming?
Lists the benefits of c programming language?
What is pragma in c?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the difference between array_name and &array_name?
What is identifiers in c with examples?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
What is formal argument?
Explain what is the difference between null and nul?
How are pointers declared in c?
Can you please explain the scope of static variables?
What are the application of c?
Why isnt there a numbered, multi-level break statement to break out
All technical questions
Is it acceptable to declare/define a variable in a c header?