I am not sure what you mean by that but a boolean is either true or false. So it is kind of like a true or false question. 4+4=7 is false. 2*4!=48 is true.
C. Send it to the recycle bin and empty the recycle bin
Artificial intelligence can be used to help science students research and verify their research. It is also a very interesting topic to study in general.
Hope that helped!!! k
Answer:
Following are the code to the given question:
user_num = int(input())#defining a variable user_num that takes input from user-end
x = int(input())#defining a variable x that takes input from user-end
for j in range(3):#defining for loop that divides the value three times
user_num = user_num // x#dividing the value and store integer part
print(user_num)#print value
Output:
2000
2
1000
500
250
Explanation:
In the above-given program code two-variable "user_num and x" is declared that inputs the value from the user-end and define a for loop that uses the "j" variable with the range method.
In the loop, it divides the "user_num" value with the "x" value and holds the integer part in the "user_num" variable, and prints its value.
Answer:
In opp friend function is a function that gives the same access to private and protected data. It is declared in class that is granting access.
Explanation:
#include<iostream.h>
using namespace std;
class Sum
{
int a, b, add;
public:
void input()
{
cout << "Enter the value of l and m:";
cin >> l>>m; taking input from users
}
friend void add(sum &t);
void display()
{
cout << "The sum is :" << z;
}
};
void add(sum & p)
{
p.add = p.a + p.b;
}
int main()
{
sum p1;
p1.input();
add(p1);
p1.display();
return false;
if(display==5)
{
return true; //true is returned if sum is equal to 5
}
else //if they are not the same
{
return false;
}
}