Advertisement
idsystems

CPP_Practica61_TablasMultiplicar

Mar 13th, 2013
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. // Program: tablas.cc
  2. // Author:  Yoan Pinzon
  3. // Date:    Agosto 30, 2006
  4.  
  5. #include <iostream>
  6.  
  7. using namespace std;
  8.  
  9. int main(){
  10.    int n;
  11.  
  12.    for(;;){
  13.       cout << "\nEntre n: "; cin >> n;
  14.       if(!n) break;
  15.       for(int i=1; i<=10; i++)
  16.          cout << n << "x" << i << "=" << n*i << endl;
  17.    }
  18.  
  19.    return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement