C++ Programming Problem #2 : Descending Numbers (Rotated Half Triangle Shape)

Problem # 2: Descending Numbers (Rotated Half Triangle Shape) //—www.skellainnovations.com—// #include <iostream.h> #include <conio.h> #define ct cout void dec(int x); int main() { clrscr(); int x; ct<<“Enter a Number: “; cin>>x; dec(x); getch(); return 0; } void dec(int x) { int a,b; for(a=x;a>=1;a–) { for(b=a;b>=1;b–) { ct<<b; } ct<<endl; } } //—www.skellainnovations.com—//   Breakdown of […]

More