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?

Continue Learning about Engineering

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.


A c program to generate even numbers up to 50?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { int i; for(i=1;i&lt;=50;i+=2) { printf("\t %d", i); } getch(); }


How do you generate palindrome number between the given range?

The generation of palindromic numbers within a given range is best done with a computer program. Space it limited so an example of program code cannot be shown here, but the Codecast website gives full guidance.


Program to generate tokens from a given expression string?

a promlem to solve an equation or a assigment


How do you generate quantum program using spss?

The Question is slightly unclear. If you have a SPSS file and you want to generate the Quantum program you can use the utility called spss2qt. This is a small program in SPSS that will convert the SPSS data into ASCII data with a Quantum program with proper column location. However you will have to modify the program to display output to your requirement as this utility will give very basic quantum program for the data. Regards Sachin You can reach me on sacsar@yahoo.com

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


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

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


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


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


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.