Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<algorithm>
- using namespace std;
- int main()
- {
- int i,s1,s2,cost,flag;
- int price[5]={13,12,9,14,15};
- sort(price,price+5);
- s1=price[0];
- s2=price[1];
- cost=s1+s2;
- printf("%d",cost);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement