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 / karthickumar

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

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I swap two values without using a temporary?

1155


Are comments included during the compilation stage and placed in the EXE file as well?

1128


What are the advantages and disadvantages of pointers?

1121


Create a simple code fragment that will swap the values of two variables num1 and num2.

1329


What is %s and %d in c?

1107


Which type of language is c?

1123


How can you convert integers to binary or hexadecimal?

1075


Why is C language being considered a middle level language?

1212


How are portions of a program disabled in demo versions?

1345


How can you draw circles in C?

1197


What is define directive?

1217


What is malloc and calloc?

1104


what type of questions arrive in interview over c programming?

2084


Write a program to find the biggest number of three numbers in c?

1101


What does c in a circle mean?

1130