Answer:
The regular bottle holds 9 fluid ounces less than the family size bottle.
Explanation:
The family size bottle of sunscreen holds 12 fluid ounces
The regular bottle holds 75 percent less
75 percent of 12 = (75/100) X 12 =0.75 X 12 =9
Since the regular bottle holds 75% less, it holds 9 fluid ounces fewer fluid than the family size bottle of sunscreen.
NOTE: The regular size holds three(3) fluid ounces of sunscreen.
Answer:
int sumAll(int n)//function definition.
{
if(n==1)//if condition.
return 1;
else//else condition.
{
return n+sumAll(n-1);//return the value and call the function in recursive manner.
}
}
Explanation:
- The above-defined function is a recursive type function that is written in the c language, which holds the if and else condition.
- When the user passes the largest value from 1, then the else condition will be executed which adds the largest value and pass the value after the decrement of the value as an argument.
- When the value will become 1, then the function if-block will be executed which returns the value and ends the calling function recursively.
Explanation:
Because they're like another member of the pack.
Answer:
create the integer variable and initialize it to one, with the do statement, increment the variable by one and print it, then the while statement checks if the variable is less than or equal to 10.
#include <iostream>
using namespace std;
int main(){
int i = 1;
do {
cout<< i << "\n";
i++;
}
while (i <= 10);
}
Explanation:
The C++ source code initializes the integer variable i to one and increments and print the value if the value is less than or equal to ten. The do-while statement executes a block of code before the condition is implemented.