You never said what language so I used C
#include <stdio.h>
<span>int main () { </span>
<span> int a; </span>
<span> for( a = 3; a > 0; a-- ){ </span>
<span> printf("%i \n", a); }</span>
<span> printf(" Blast OFF !!!\n"); </span>
<span>return 0; </span>
<span>}</span>
Answer:
// This program is written in C++
// Comments are used for explanatory purpose
// Program starts here
#include<iostream.h>
#include<stdlib.h>
int main()
{
// Declare variables
int num, selectno;
string status;
randomize();
//Generate random number;
num=rand()%10000;
// Prompt to guess a number
cout<<"You have only 10 tries\nTake a guess: ";
int tries = 0;
while (tries != 10)
{
cin>>selectno;
if(selectno == num){
cout<<"You passed at the "<<count+1<<" attempt";
tries = 10;
}
else
{
cout<<"You failed. Take another guess\n You have "<<10 - count + 1 <<" attempts";
}
tries++;
if(tries >= 10)
{
break;
}
}
return 0;
}
The answer would be <span>It is designed to promote social interaction and community building.</span>
Answer:
goku comes in and turns super sayain naruto come in with kurama and naruto get goku with a rasagen and geku is still fist fightin while naruto is using his kurama and turns into kurama and knocks out goku now naruto thinks he won and goku IS HITIN HIM WITH A KAMEKAMEHA GOKU IS SIROUS NOW
Explanation:
Answer:
Explanation:
The following code is written in Java. It creates the raiseToPower method that takes in two int parameters. It then uses recursion to calculate the value of the first parameter raised to the power of the second parameter. Three test cases have been provided in the main method of the program and the output can be seen in the attached image below.
class Brainly {
public static void main(String[] args) {
System.out.println("Base 5, Exponent 3: " + raiseToPower(5,3));
System.out.println("Base 2, Exponent 7: " + raiseToPower(2,7));
System.out.println("Base 5, Exponent 9: " + raiseToPower(5,9));
}
public static int raiseToPower(int base, int exponent) {
if (exponent == 0) {
return 1;
} else if (exponent == 1) {
return base;
} else {
return (base * raiseToPower(base, exponent-1));
}
}
}