Answers for "javascript function in if condition"

3

if condition

#converting weight into pounds orkilograms.
given_weight=int(input('given_weight'))
unit=input('(K)G or (L)bs')

if unit.upper() == 'K':
    pounds=given_weight/0.45
    print('weight in pounds',pounds)
else:
    kilograms=given_weight*0.45
    print('weight in kg',kilograms)
________________________________________________________________________________
Posted by: Guest on December-03-2021
0

if javascript

if (a > 0) {
    result = 'positive';
  } else {
    result = 'NOT positive';
  }
Posted by: Guest on February-05-2021

Code answers related to "javascript function in if condition"

Code answers related to "Javascript"

Browse Popular Code Answers by Language