#include <iostream.h>
double fact(double n)
{
return (n > 1) ? n * fact(n - 1) : 1;
}
double ncr(int n, int r)
{
return fact(n) / (fact(r) * fact(n - r));
}
int main()
{
for (int i = 0; i < 15; i++)
{
for (int j = 0; j <= i; j++)
cout <<ncr(i, j) << ' '; cout << endl;
}
return 0;
}
Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.
a triangle then a square :)
Without seeing the program, I can only say: 'zero or more times'
example of procedural programming are those programming language that have structure e.g basic,fortran,c++,c and pascal e.t.c
the age of 2 friends determine if the age greater than 18 if not write the output statment you can vote if younger than 18 print you should be in school
No.
Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.
{A program to compute the area of a triangle} {by Ogboin W. Meshach} Var; b,h:real; BEGIN Writeln('Triangle'); Write('Base: '); Readln(base); Write('Height: '); Readln(height); area:=0.5*base*height; Writeln('Area: ', area :0:2); End.
write a program to print A to Z on screen in c?
a triangle then a square :)
Without seeing the program, I can only say: 'zero or more times'
write a c++ programe to print a triangle without (for)
Depending on language, here's an example: for i=4 to 120 step 4 print i next
(ab)*b
Try the triangle program on a search engine. Replace numbers with stars and that should do the trick
Write a function that print a triangle of stars.
example of procedural programming are those programming language that have structure e.g basic,fortran,c++,c and pascal e.t.c