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

Write a program to reverse a linked list in c.

1142


State the difference between realloc and free.

1102


Who is the founder of c language?

1178


What are formal parameters?

1131


What are # preprocessor operator in c?

1126


What is a volatile keyword in c?

1171


Explain the difference between null pointer and void pointer.

1096


When is a “switch” statement preferable over an “if” statement?

1162


How can you call a function, given its name as a string?

1167


What do you mean by a sequential access file?

1091


Explain can static variables be declared in a header file?

1163


When should I declare a function?

1151


What are the advantages of the functions?

1169


How can I open files mentioned on the command line, and parse option flags?

1078


Explain what header files do I need in order to define the standard library functions I use?

1181