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

What is the difference between super class & sub class?

1283


What is the difference between logical data independence and physical data independence?

1088


How do you delete a list in java?

1022


How can you add and remove nodes in jtree?

1107


What are the legal parameters?

1065


How large is a boolean?

1065


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

1057


What is a Hash Table? What are the advantages of using a hash table?

1134


What is return type in java?

1126


Is java a super set of javascript?

1158


Is an integer an object?

1031


Is this valid in java ? Can we instantiate interface in java?

1027


What is threaded programming and when is it used? : Java thread

1115


Write a java program to print fibonacci series?

1007


Is int a class in java?

1031