Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <stdio.h>
- int cau2(int a[], int N)
- {
- int sum,max=0;
- for (int i = 0 ; i < n ; i++ )
- {
- if(max<a[i])
- max=a[i];
- sum = sum + a[i];
- }
- return sum-max;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement