CodeField

Write

Read a price in whole naira, then a quantity. Print the total cost, as a whole number and nothing else.

  • Example: 250 and 3 gives 750
  • Example: 1200 and 2 gives 2400

Your program, Python

Tab indents. To leave, press Escape, then Tab.

Compare it with a model answer now, or come back on a device that can run Python.

Python for this device

Writing tasks run your program on this device. That needs Python: 5.5 MB, once. About 2 minutes on 3G, about 8 on a slow connection. It stays on this device. Remove it in Settings at any time.

You can do the other tasks while it downloads.