answersLogoWhite

0

this program is to generate pascal's triangle #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(); }

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Shell program to generate the prime numbers betwee 1 to 50?

2,3,5,7,9,11,13,17,19,23,29,31,37,39,41,43,47,49


Write a c program to accept a numbers and generate square root cube and exponential values?

write a c program to accept a number and generate a square root cube and exponential values


How do you write a program to print numbers from star one and next line star two in php?

Try the triangle program on a search engine. Replace numbers with stars and that should do the trick


C program to generate numbers from 1 to 100 divisible by 2?

(rand()&amp;50+1)*2


What is a C program to generate prime no?

not sure of the exact syntax but its quite hard to generate them, but you can go through a list of numbers, that could be 0-10000000 say, and check if it is prime by dividing it by all the numbers that are smaller than it


What does it mean to generate random numbers in Java?

Generating random numbers in Java is somewhat of a misnomer because the numbers are actually semi-random.It means to use the program to obtain random integers to use in hypothetical situations such as statistics.


Shell program to generate prime number between 1 and 50?

There are several shell programs available for download on the Internet that will generate prime numbers. The best way to find a prime number is through calculation, however.


Does interpreter generate an object program from the source program?

No, that's what the compiler does.


Was there a program called the triangle?

yea


Someone used my card but i have it how?

Either someone has skimmed - copied your card when you used it. Or they've used a computer program to generate working card numbers and one of them was yours.


Write a java program using forloop to generate the first 10 multiples of the first 10 natural numbers?

Here's a simple Java program that uses a for loop to generate the first 10 multiples of the first 10 natural numbers: public class Multiples { public static void main(String[] args) { for (int i = 1; i &lt;= 10; i++) { System.out.print(&quot;Multiples of &quot; + i + &quot;: &quot;); for (int j = 1; j &lt;= 10; j++) { System.out.print(i * j + &quot; &quot;); } System.out.println(); } } } This program iterates through the first 10 natural numbers and prints their multiples from 1 to 10.


Write a program to generate the first 50 perfect numbers?

I don't believe that 50 perfect numbers have ever been found, last time I checked there were only about 47 known perfect numbers. It would also require an extremely powerful computer.