Question: Coding an C program Task 1 Code a C program that asks a date in form of two numbers, one for the month and one
Coding an C program
Task 1
Code a C program that asks a date in form of two numbers, one for the month and one for the year (bigger than 0). It then prints the number of days that month has
Task 2

1) Rewrite the "number of days in a month" assignment using the switch statement. Try to make use of the fact that without a break statement you can make more than one match. 2) Diamond printing. Write a program in C to display the pattern like a diamond. *** ***** ******* ********* ******* ***** *** The user inputs a number equivalent to half of the diamond plus one (in the above example she would have typed 5 3) Write a program that calculates the least common multiple of two numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
