Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://www.facebook.com/CungHocLapTrinhUIT
- #include <iostream>
- using namespace std;
- int GT(int n)
- {
- int s = 1;
- for (int i = 1; i <= n; i++)
- s *= i;
- return s;
- }
- void main()
- {
- int a, b, c;
- cin >> a >> b >> c;
- cout << GT(a) + GT(b) + GT(c) << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement