ahmed0saber

Multiplication table in C++

Nov 4th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     int a=1 , b=1 ;
  6.     while(a<=9)
  7.     {
  8.         b=1;
  9.         while(b<=9)
  10.         {
  11.             cout<<a<<"*"<<b<<"="<<a*b<<" ";
  12.             b=b+1;
  13.         }
  14.         a=a+1;
  15.         cout<<endl;
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment