Advertisement
sidex15

2/14/2019 C++ exercise #3

Feb 14th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include<iostream.h>
  2. #include<conio.h>
  3.  
  4. int main()
  5. {
  6. int a,b;
  7. cout<<"input a number: ";
  8. cin>>a;
  9. for(int i=a;i>0;i--){
  10.  for(int j=a;j>0;j--){
  11.   b=a*j;
  12.   b*=i;
  13.   cout<<b<<"\t";
  14.  }
  15.  cout<<"\n";
  16. }
  17. getch();
  18. return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement