yoyoboyss

Untitled

Feb 25th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. int E = 1, n, i = 1;
  8. cout << "n= "; cin >> n;
  9. while(i <= n){
  10. E *= 3*i;
  11. i++;
  12. }
  13. cout << "\nE= " << E;
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment