Also, I know that I can just print a leading zero by just outputting a zero before the days less than 10, but I was wondering If there is something similar to how setprecision works with setting decimal places. (as i am allowed to #include <iomanip>). But thanks for the help.
For example, what if I wanted everynumber I output to be 10 digits, so if someone gives me a "1" i output "0000000001" (9 zeros). Of if the input is 456, I print 7 leading zeros.