#QUIZ01 When u were only missing a bracket

Today we had the first quiz of the course, the challenge was to create 3 programs, using what we´ve learned since we started the lessons.

The first code calculates the volume of a cylinder, asking the user for the value of the radius and the height, declaring the values as a float data. (Clic on the link for more information) and here´s a screenshot of how it looks like working out.

prog1.jpg

I know there´re some libraries we could´ve used but i didnt know which one to choose and how to use i just know is something like M_PI and the library´s name is math.h or something like that, I´ll search more information about it so next time i wont need to write the PI value.

The second one was similar to the one we did two weeks ago, asking the user to type two numbers and showing the product, division and remainder of them.(I changed the Cygwin background color and it look nice haha)

2

And the last one is almost the same as the 2nd but we had to declare the variables as a float data, so the program could show decimals i the answers. It also shows the addition and the subtraction of the two numbers.

This self-learning course is helping me a lot, with no pressure of doing homeworks and with my own resources. If it wasn´t i could not do activities like this.

 

CC BY-SA 4.0 #QUIZ01 When u were only missing a bracket by dariomagana10 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.