1. Write a program called sumk.c which, for each number k from 1 to 15, prints the sum of the numbers from 1 to k. Compile it to produce an executable called sumk. Your program should print a table in this format:
Note: you might like to use a format such as "%4d" in your printf() statement, to force the sums to be right-justified.
2. Copy sumk.c to a new file sumcube.c . Modify the new file so that, for each integer k between 1 and 15, it prints the sum of the cubes of the numbers between 1 and k. Compile this program to produce an executable called sumcube. Note: you should change the number of digits in the format statement so the numbers remain right-justified.