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 / manojkumar challagundla

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

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is wrong with this statement? Myname = ?robin?;

1584


What is the symbol indicated the c-preprocessor?

1242


What are actual arguments?

1084


how can I convert a string to a number?

1083


What is the function of this pointer?

1337


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

1260


What is ponter?

1265


What is the use of pragma in embedded c?

1056


what are # pragma staments?

2044


What does 4d mean in c?

1499


Write a program on swapping (100, 50)

1124


What does double pointer mean in c?

1173


What does do in c?

1041


Are the expressions * ptr ++ and ++ * ptr same?

1149


Why is c platform dependent?

1088