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 / anjali

#include <stdio.h>

int main ()
{
int k = 2;
int i, j,l;
for (i = 0; i < 5; i++)
{
for (j = i+1; j < k; j++)
{
printf("%d", j);
}
k = k + 2;
for (l = j - 2; l > i; l--)
{
printf("%d", l);
}
printf("\n");

}

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a good data structure to use for storing lines of text?

1069


What is pointer and structure in c?

1145


Who developed c language and when?

1047


How do you construct an increment statement or decrement statement in C?

1211


How to throw some light on the b tree?

1065


What is table lookup in c?

1078


What are the advantages of c preprocessor?

1241


Mention four important string handling functions in c languages .

1073


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

1041


Is c object oriented?

956


Explain how can I remove the trailing spaces from a string?

1036


What are variables c?

1032


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1242


How will you write a code for accessing the length of an array without assigning it to another variable?

1032


What are the different types of C instructions?

1290