Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 do we use null pointer?

1046


What are the keywords in c?

1117


What does != Mean in c?

1032


Why we write conio h in c?

1012


Can you think of a logic behind the game minesweeper.

2450


Why clrscr is used after variable declaration?

1668


What is the auto keyword good for?

1131


What is a nested formula?

1120


Write a program to use switch statement.

1113


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

1008


How can I recover the file name given an open stream or file descriptor?

1070


What is selection sort in c?

1065


What is indirection?

1077


Write a program to check armstrong number in c?

1119


why do some people write if(0 == x) instead of if(x == 0)?

1050