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...

Can anyone help me with this please? Need to print the below
values.. Thanks

1
1 2
1 2 3
1 2 3 4

Answer Posted / hari

#include<stdio.h>
main()
{
int i,j= 0;
for(j= 1;j<=5 ;j++)
{
for(i=1;i<=j;i++)
printf("%d ",i);
printf("\n");
}
}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I write functions that take a variable number of arguments?

1131


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

1104


int i=10; printf("%d %d %d", i, i=20, i);

1699


Give the rules for variable declaration?

1219


I heard that you have to include stdio.h before calling printf. Why?

1115


How many parameters should a function have?

1252


Differentiate between new and malloc(), delete and free() ?

1236


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

1105


Can we replace the struct function in tree syntax with a union?

1353


What is the best style for code layout in c?

1146


What is const and volatile in c?

1097


What is the use of bitwise operator?

1174


swap 2 numbers without using third variable?

1177


Is fortran faster than c?

1082


Why we use int main and void main?

1119