Advertisement
ShaunakVids

6.7 Program to convert to Tonnes to Kgs or Quintals

Sep 24th, 2024
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. #Convert Tonnes to quintals or kilograms
  2.  
  3. #1 Tonne = 1000kg
  4. #1 Tonne = 10 quintals
  5.  
  6. tonnes = float(input("Enter the value in tonnes: "))
  7.  
  8. kg = (tonnes*1000)
  9. quintals = (tonnes*10)
  10.  
  11. print("The value in kgs is: ",kg)
  12. print("The value in quintals is: ",quintals)
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement