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

Write a program to check prime number in c programming?

598


Lists the benefits of c programming language?

598


What is pragma in c?

629


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1468


What is the difference between array_name and &array_name?

779






What is identifiers in c with examples?

677


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

642


What is formal argument?

652


Explain what is the difference between null and nul?

659


How are pointers declared in c?

601


Can you please explain the scope of static variables?

602


What are the application of c?

650


Why isnt there a numbered, multi-level break statement to break out

589


All technical questions

1511


Is it acceptable to declare/define a variable in a c header?

688