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

triangle number finding program...

Answer Posted / sevak.yatrik777

#include<stdio.h>

#include<conio.h>

main()

{

int n,i,j;

clrscr();

printf("enter the number");

scanf("%d",&n);

for(i=1;i<=n;i++)

{

for(j=1;j<=i;j++)

printf("%d",j);

printf("\n");

}

getch();

}

Read more:
http://wiki.answers.com/Q/C_program_to_generate_parkside%27s_triangle_numbers#ixzz1M2ugMMU6

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do c compilers work?

1147


What is a sequential access file?

1187


What is typedef example?

1197


Explain about C function prototype?

1106


Explain how can I remove the trailing spaces from a string?

1058


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1413


Why is c not oop?

984


What do you understand by normalization of pointers?

1068


What is spaghetti programming?

1146


Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.

1131


What is the use of structure padding in c?

1080


Which header file is used for clrscr?

1065


What's the difference between constant char *p and char * constant p?

1155


What is call by value in c?

1014


How can I find out how much free space is available on disk?

1061