Quiz 2

In this quiz, to make the program run, you needed to create also a function.

Like in the first problem. Captura de pantalla 2016-02-16 a las 8.42.12You needed to create the function superpower and to declare the integers a and b in it.
The program should make the result of the first number powered to the second. But all in one function. Also inside the function you need to declare everything you will use, only in the int main, you will type int a, b. Because until then the program ask you for them.

And for the second program:

Captura de pantalla 2016-02-16 a las 8.42.21Kind of the same, but you need to print with * (stars), the number that you provide to the program. So the program print * in the same line, with this loop, until the int n, equals the int a, that it would be the number you’ve written.

Also you don’t need to use “int” with the function, you can use “void” because in this cae you don’t need to return anything.

 

As always, my link to my GitHub:
https://github.com/antonioangelm24/TC101
as Quiz2- a & Quiz2-b


Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Salir /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Salir /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Salir /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Salir /  Cambiar )

Conectando a %s