Advertisement
Yuuouji

câu2

May 29th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #include <conio.h>
  2. #include <stdio.h>
  3.  
  4. int cau2(int a[], int N)
  5. {
  6. int sum,max=0;
  7. for (int i = 0 ; i < n ; i++ )
  8. {
  9. if(max<a[i])
  10. max=a[i];
  11. sum = sum + a[i];
  12. }
  13. return sum-max;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement