renix1

Tabuada simples, cpp

Dec 21st, 2015
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.40 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main(){
  9.     int n = 0, x = 0, f = 0;
  10.     cout << "Qual tabuada voce quer? ";
  11.     cin >> n;
  12.     cout << "Comecando de qual? ";
  13.     cin >> x;
  14.     cout << "Terminando em qual? ";
  15.     cin >> f;
  16.     for(x; x <= f; x++){
  17.             cout << n << " x " << x << " = " << n*x << endl;
  18.     }
  19.     system("pause");
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment