こんにちは私は重みのifステートメントを使用してxcodeを初めて使用します
int weight;
if (weight <10) {
([ input.text * @" 100 " Floatvalue); }
if (weight 10-20){
([ input.text == 1000 + 50 for each kg more than 10);}
if (weight >20 ){
([ input.text == 1000 + 20 for each kg more than 20);}