The code of the given problem is given below :
#include<iostream>
using namespace std;
void print( float speed ){
if(speed < 20 )
{
cout<<"too slow\n";
}
else if(speed > 80 )
{
cout<<"too fast\n";
}
else{
cout<<"right\n";
}
}
int main()
{
print( 18.6 );
print( 45 );
print( 100 );
return 0;
}
Answer: Neither public or private members in ClassB can be inherited in ClassA
Explanation:
THIS IS FOR PYTHON
total = 0
for i in range(7, 35):
total += i
print(i)
print(total)
I forgot the reason but python always stops one number before your desired value. So that's why it's 35
You are engaging in PLAGIARISM.
Plagiarism<span> is the act of taking another person's writing, conversation, song, or even idea and passing it off as your own.
</span>
I hope my answer has come to your help. Thank you for posting your question here in Brainly. We hope to answer more of your questions and inquiries soon. Have a nice day ahead!