Answer:
You'd use an if statement if something happens. What I mean is that {If this happens} Then that happens but if the if doesnt happen then the then doesnt happen
Explanation:
Answer:
Static web pages are sent as it is at web server without being processed additionally.
Dynamic web pages content may change, and server hosting dynamic web pages return content after processing trough a program.
Examples of dynamic and static web pages are below
Explanation:
<em><u>dynamic websites</u></em>
f o o t y r o o m (.co) It is a football website. Displays latest highlights and football stats. It is dynamic because it gives live match scores, as the scores change, content change as well.
a c c u w e a t h e r (.com) It shows weather information. It is dynamic because when requested, displays current weather information.
x e (.com) It is a currency website. Dynamic because it shows live exchange rates.
<em><u>static websites</u></em>
s c i p y - l e c t u r e s (.org) It is a website about scientific python environment. It is static because it gives same content whenever requested.
d o g a c a n d u . b l o g s p o t (.com) it is a blog. Static because the requested content doesn't change unless the blogger adds a new story.
z t a b l e (.net) It is a website about z-score values and includes z-tables. It is static because its displayed as it is.
<span>#include <iostream>
using namespace std;
bool bears(int n);
int main(){
int number;
do{
cout<<"enter the amount of bears (press 0 to stop the program): ";
cin>>number;
if (bears(number)){
cout<<"you have reached the goal!"<<endl;
}
else{
cout<<"sorry, you have not reached the goal."<<endl;
}
}while(number != 0);
}
bool bears(int n){
if (n < 42){
return false;
}
else if (n == 42){
return true;
}
else{
if (n % 5 == 0){
return bears(n - 42);
}
else if(n % 2 == 0){
return bears(n / 2);
}
else if(n % 4 == 0|| n % 3 == 0)
{
int one;
int two;
one=n%10;
two=(n%100)/10;
return bears(n - one * two);
}
}
<span>}</span></span>
Answer:
The prototype for the function is written below:-
void printArray(int [],int);
Explanation:
The prototype of the function is written above.Since the function does not return a value so it has to be of type void.Then following is the name of the function.Following that the arguments in the parenthesis.We need not to provide the name of the arguments we just have to define it's type.So for the array we have to just write int [] and for integer variable just int.