Advertisement
Guest User

c_programming_sum_s

a guest
Aug 28th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. // Su dung vong lap for
  2. // Tinh tong day so S(x, n) = x + 2x + 3x + ... + nx
  3. // VD:  S(1, 2) = 1 + 1.2 = 3
  4. //      S(2, 5) = 2 + 2.2 + 2.3 + 2.4 + 2.5 = 30
  5.  
  6. int TongS(int x, int n)
  7. {
  8.    
  9. }
  10.  
  11. int main()
  12. {
  13.    
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement