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 public field modifier?

1033


What are the main uses of the super keyword?

966


What is a class component?

1179


How can we create objects if we make the constructor private ?

1023


What is externalizable?

1070


What is the purpose of skeleton and stub?

1250


what do you understand by synchronization? : Java thread

1008


Does java support function overloading, pointers, structures, unions or linked lists?

1112


What is the size of int in 64-bit jvm?

1099


What is defined as false sharing in the context of multithreading?

1047


When will we prefer to use set and list in java and why?

966


Name some classes present in java.util.regex package.

1037


Difference between method overloading and overriding.

1089


What are the escape sequences in java?

1033


Can a constructor call the constructor of parent class?

1045