public static void main(String[] args) {
;( Scanner input = new Scanner(System.in
;(": System.out.print(" Enter your weight in pound
;()double weight = input.nextDouble
;("System.out.print( " Do You have active or sedentary lifestyle ? Enter A if it's active and S if it's sedentary
;( char activity = input.next().charAt(0
;"String z = "INVALID
;( double x = Double.parseDouble(z
; double y = ( activity == 'A' || activity == 'S' )? (( activity == 'A')?( weight * 15 ) [:(] weight * 13 )) : x
; ("System.out.println( " The recommended calories for you " + y + " Calories
}}تم تعديل هذه المشاركة بواسطة أحمد أبو عبد البر في 14 نوفمبر 2013 في 22:51
