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 are the three constants used in c?

934


What are the data types present in c?

1097


Is stack a keyword in c?

1044


what are the different storage classes in c?

1124


What is null pointer constant?

1066


Differentiate between null and void pointers.

1122


What is the use of linkage in c language?

1014


Why is c fast?

1013


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2280


How can I direct output to the printer?

1278


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

1075


What is meant by type specifiers?

1085


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1715


What math functions are available for integers? For floating point?

1083


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1072