Answer:I would try downloading a beat app and making a song,then posting
Explanation:
Answer:
def print_range(low, high):
for i in range(low,high):
print(i)
Explanation:
Create the function to accept two parameters (low and high)
Use a for loop to iterate from low to high using the range function
Print the value at each iteration
See a complete program and output below.
<em>def print_range(low, high): </em>
<em> for i in range(low,high):</em>
<em> print(i)</em>
<em>low = 1</em>
<em>high =10</em>
<em>print_range(low, (high+1)) </em>
<em />
word1 = input("Enter a word: ")
word2 = input("Enter a word: ")
print(word1 + " " + word2)
I hope this helps!
Answer:
int main()
{
double pH;
int neutral;
int base;
int acid;
cout<<"Enter a pH Value";
cin>> pH;
if(pH<7.0){
neutral =0;
base=0;
acid= 1;
}
else if (pH=7.0){
neutral =1;
base=0;
acid= 0;
}
else{
neutral =0;
base=1;
acid= 0;
}
cout <<"The neutral, Base and Acid Values are: "<<neutral<<","<<base<<","<<acid<<" Respectively"<<endl;
return 0;
}
Explanation:
Using multiple if/elseif/else statement the following problem is solved with C++