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

progrem to generate the following series
1
12
123
1234
12345

Answer Posted / f.hnayan

#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
for(a=0;a<=4;a++)
{
for(b=1;b<=(a+1);b++)
{
printf("%d\t",b);
}
printf("\n");
}

return 0;
}

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In c language can we compile a program without main() function?

1139


What is malloc() function?

1171


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1304


difference between object file and executable file

6734


How many parameters should a function have?

1198


In a switch statement, explain what will happen if a break statement is omitted?

1077


Explain what is the benefit of using an enum rather than a #define constant?

1225


Explain how to reverse singly link list.

1148


What is the difference between array and pointer?

1033


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1160


What does 3 periods mean in texting?

1067


What do you mean by dynamic memory allocation in c? What functions are used?

1169


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1075


Explain how do you search data in a data file using random access method?

1137


What is meant by 'bit masking'?

1392