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

Program to output as below formate:
1
2 3
4 5 6
7 8 9 10

Answer Posted / koushik sarkar

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

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we split string with in java?

963


How can you make a class serializable in java?

951


What is the purpose of assert keyword used in jdk1.4.x?

1029


What is the difference between int and integer in java?

998


How to make a non daemon thread as daemon?

1030


Implement a stack with push (), pop() and min() in O(1) time.

1064


Explain the scope or life time of class variables or static variables?

952


What do you understand by looping in java? Explain the different types of loops.

1011


Why chararray() is preferred over string to store the password?

976


What is difference between add() and addelement() in vector?

1497


Is it possible to use Semaphore/ Mutex in an Interrupt Handler?

1046


Define interface in java?

1040


How can you read an integer value from the keyword when the application is runtime in java? example?

1077


What is oops in java?

967


Explain the features of java?

979