SHARE
TWEET

Bài 6 Tin

anhkiet2507 Apr 5th, 2019 6,709 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Bài 6: Tính giai thừa
  2. #include <iostream>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int a,i;
  8.     long long gt;
  9.     cout << "Nhap vao a: ";
  10.     cin >> a;
  11.     gt = 1;
  12.     for (i = 1; i <= a; i++)
  13.     {
  14.         gt = gt*i;
  15.     }
  16.     cout << a << "! = " << gt << endl;
  17.     system("pause");
  18.     return 0;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top