Answer:
Formatting text is how something is specifically layed out. Specific style.
Explanation:
Answer:
The answer is "All of these could make good functions
".
Explanation:
In the given question some information is missing, that is options which can be described as follows:
a. Ask the user to confirm an input with a yes/no answer
b. Sort some input data into an ordered list
c. All of these could make good functions
d. Calculate a complex mathematical expression
A method is a collection of ordered code and provides a generic code, that is used to execute a single, connected operation.
- A good function is a function, which takes values from the user and it will sort all the data and store in memory, and whenever we call the function, it will give the values.
- It is also used to calculate some complex values,
Answer:
0
Explanation:
As far as I know, no one I know, even knows that brainly exists. Those who do know about it don't use it.
Answer:
The program in Python is as follows:
apples = int(input("Apples: "))
people = int(input("People: "))
apples%=people
print("Remaining: ",apples)
Explanation:
This gets the number of apples
apples = int(input("Apples: "))
This gets the number of people to share the apple
people = int(input("People: "))
This calculates the remaining apple after sharing the apple evenly
apples%=people
This prints the calculated remainder
print("Remaining: ",apples)
Answer:
#include <bits/stdc++.h>
using namespace std;
void funct(){
string name;
cout<<"enter the string: ";
cin>>name;
reverse(name.begin(), name.end());
cout<<"The string is : "<<name<<endl;
}
int main()
{
funct();
return 0;
}
Explanation:
create the function funct() with return type void and declare the variable type string and print a message for asking to used enter the string.
The string enter by user is store in the variable using cin instruction.
after that, we use a inbuilt function reverse() which takes two argument.
firs argument tell the starting point and second index tell the ending point. then, the reverse function reverse the string.
name.begin() it is a function which return the pointer of first character of string.
name.end() it is a function which return the pointer of last character of the string.
finally, print the reverse string.
for calling the function, we have to create the main function and then call the function.