Answer: True
Explanation: For loop is used in the C++ programming is defined as the statement that defines about the flow control .This loop works under some condition that is considered.
For loop is evaluated to execute for one time if the statement condition is true but there are also chances of no execution at all because of the incorrect condition. So, for loop might not run even once in that condition.Thus , the statement given is true.
Answer:
You may use a different variable type for input in order to process the data appropriately and may use a different variable type to accommodate your program.
Explanation:
Your input may have to be different then output varying on what data you are processing.
For example, just like the last question you asked about calculating the area of the rectangle, your input MUST be converted to a different a numerical data type (i.e int or float) in order to do the math.
Based on your last question, if we didn't convert your input into a string your results wouldn't add the numbers together but only concatenate them. If I typed 3 & 5 as length & width, I would get 35 instead of 15.
Now another example is using functions (or methods whatever you want to call them), your input can be one thing and outputs another.
Let's say I want a function to tell me if I am smart. The way I want it to determine if its smart is by inputting my GPA into it, which is a numerical value. So the function would look something like this:
<u>Code (Python)</u>
def IsSmart(gpa):
if (gpa >= 4):
return True
else
return False
As you can see I am inputting a numerical value and it is outputting a boolean value. I can use this in a if else chain to spit out an output to the user.
Answer:
Programming is a set of instructions i.e. Input given by the user to the computer to perform a particular task and give the desired result i.e. output.
Final Answer
s=0
for i in range(1,26):
s=s+ i
print(s)
Explanation:
IF THE ANSWER IS CORRECT THEN MARK A BRAINLEST
Answer; A peripheral is a “device that is used to put information into or get information out of the computer.”[1]
There are three different types of peripherals:
Input, used to interact with, or send data to the computer (mouse, keyboards, etc.)
Output, which provides output to the user from the computer (monitors, printers, etc.)
Storage, which stores data processed by the computer (hard drives, flash drives, etc.)
Explanation: