Computer Science, asked by surabhitewari123, 23 hours ago

write a program to convert 50 grams in kilograms​

in c++

Answers

Answered by pranaymangla2009
1

Answer:

def g_to_k(value_in_grams):

   return value_in_grams/1000

#Converting 50 grams in kilograms

answer = g_to_k(value_in_grams=50)

print(answer)

OUTPUT -

0.05

Similar questions