Rust Taskbook Level 6.6
Determine how many days are left until the end of the month.
Ask the user to enter their email. Check if they entered the correct value.
Ask the user to enter a date in the format year-month-day. Determine if the date was already in the current year.
Ask the user for their birthday. Find out how many days are left until their next birthday.
Get the current date as the following structure:
struct Date
{
year: u16,
month: u8,
day: u8,
}
Write code that will compare the two dates below and print a message telling you which one is greater:
let date1 = (2020, 11, 30);
let date2 = (2020, 12, 31);
Given some array of integers, for example, like this:
[123, 456, 789]
Merge all the elements of this array into one vector, breaking them down character by character:
[1, 2, 3, 4, 5, 6, 7, 8, 9]