Formatted Input-Output - 4

Problem Set 1.4: Formatted Input-Output [4]

  1. [1] Input current time in HH:MM:SS (1:5:30) format and print in HH.MM.SS (01.05.30) format.

  2. [2] Input date in MM/DD/YYYY (12/1/2020) format and print in DD-MM-YYYY (01-12-2020) format.

  3. [3] Input your height in feet and inches in FF' II'' (5' 2'') format and print it in FF Feet II Inche (5 Feet 2 Inches).

  4. [4] Input a complex number in a+bi (3+6i) format and print in a+ib (3+i6) format.

Last updated