Because it ' s human nature . if there ' s a question to be asked , people will try to answer it . Also , different people have different definitions of God some are fairly materialistic and interventionist , while some are very interpretative and elastic . <| sep |> Happy birthday to you ! Today is mine too ! <| sep |> As uraevnos recommended , you could write a function to do this . You have basically already written the code for it in your first for loop . Maybe name it like so void skipdaysint daycountnow this function can be called before you print a new Month . The parameter daycount will be the given number of days that need to be skipped . So the first call to skipdays will take the user input . Then you could add this variable assignment to your current code if currentcolumn d 1 i % 7 0 which will assign a variable called currentcolumn to the exact column of each day that is printed Note the order of operations here . Now you can use this variable currentcolumn to pass to your skipdays function . Again , you will call the skipdays function each time you print a new Month .