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

how can i get output like this?
1
2 3
4 5 6

Answer Posted / arun asokan

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

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %p mean?

1037


What does struct node * mean?

967


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1810


What is wild pointer in c?

1020


How do you declare a variable that will hold string values?

1107


Is there any demerits of using pointer?

1018


what is the structure pointer?

2083


what are the advantages of a macro over a function?

1099


Under what circumstances does a name clash occur?

1159


Do array subscripts always start with zero?

1240


When should the volatile modifier be used?

1111


How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1034


What is the best organizational structure?

1068


What is difference between structure and union in c?

927


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15732