Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<algorithm>
  3. using namespace std;
  4. int main()
  5. {
  6. int i,s1,s2,cost,flag;
  7. int price[5]={13,12,9,14,15};
  8. sort(price,price+5);
  9. s1=price[0];
  10. s2=price[1];
  11. cost=s1+s2;
  12. printf("%d",cost);
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement