fork download
  1. f=input("number of fat grams:")
  2.  
  3. c=input("number of carbohydrate grams:")
  4.  
  5. print"calories from fat : "
  6.  
  7. print f*9
  8.  
  9. print"calories from carbohydrate : "
  10.  
  11. print c*8*4# your code goes here
Success #stdin #stdout 0.08s 8840KB
stdin
5
5
stdout
number of fat grams:number of carbohydrate grams:calories from fat : 
45
calories from carbohydrate : 
160