#Quiz 2

maxresdefault

Well, we had another quiz and I am not happy with it. I hate them but I have to do it. Well, I am going to explain how I solve the two problems of the quiz, and I am also going to post some links where I learn the stuff I used to solved them. Also as well, I am going to post a link, for yo to download my source code and try it.

Problem 1: (Multiplying a number times a power given)

I feel lazy right now so I will just post the source code and the link for downloading, maybe at night I explain how I did it. Here is the link:https://www.dropbox.com/s/u91sx5qitufkvhk/superpower.cpp?dl=0

Captura de pantalla 2016-02-05 a las 3.53.15 p.m.Captura de pantalla 2016-02-05 a las 3.53.25 p.m.

Problem 2: (Printing stars)

Problem one was about making a program witch the user gave a number of times he want it to print “*”. It was really easy to solve, you just have to ask the user for the number of time they want to print “*”, declare a int variable in where you will store the value of number of times and then you will make a for loop for (which will be in charge of printing the number of “*” given. First if you do not know what it is a for loop and how to use it, I recommend you to read this first and then come back to my blog. 🙂 So, here is the link, https://www.programarya.com/Cursos/C++/Ciclos/Ciclo-for.

I feel lazy today so at night I will finish this post, I promise. Here is the link for downloading my source code, https://www.dropbox.com/s/ah5co776p53xymt/stars.cpp?dl=0

Captura de pantalla 2016-02-05 a las 3.56.42 p.m.

CC BY-SA 4.0 #Quiz 2 by manuelch96 is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.