Fun Quiz, a little bit tricky but fun, there’s a lot stress on this one, a lot people failed. But as Ken says it’s #OkToFail.

Well back to business, in the first part of the quiz is make a function called “superpower” able to ask for two numbers and return the power of it on a long type. There’s a lot of methods you are able to, but the easiest one is with the library <cmath>, where you are able to call a function(wow) called ‘pow(x,y)’, that makes the power of two numbers, that’s it.

And for the second part, you have to make a function called stars where you input the value of the length of a chain of stars, as said previously theres a lot of methods but the easiest one is with a for( ), below i will paste a link to the code for the Quiz #06.

Thanks for reading.

github Code for Quiz #06
https://github.com/AndresSV/TC1017/blob/master/Quiz%20%2306%20.cpp

flickr photo by Craig Sunter
https://www.flickr.com/photos/16210667@N02/13973604274
Creative Commons Public Domain

CC BY 4.0 Quiz #6 – And now, You call it Madness. by andresslvr is licensed under a Creative Commons Attribution 4.0 International License.