Answer:
There is no need to make an algorithm for this simple problem. Just add the two numbers by storing in two different variables as follows:
Let a,b be two numbers.
c=a+b;
print(c);
But, if you want to find the sum of more numbers, you can use any loop like for, while or do-while as follows:
Let a be the variable where the input numbers are stored.
while(f==1)
{
printf(“Enter number”);
scanf(“Take number into the variable a”);
sum=sum+a;
printf(“Do you want to enter more numbers? 1 for yes, 0 for no”);
scanf(“Take the input into the variable f”);
}
print(Sum)
Explanation:
hi there answer is given mar me as brainliest
The tab key moves the cursor to the next field in the tab order, which is set by the programmer.
Thunderbolt ports are audiovisual ports typically used to connect large monitors.
<h3>What is a Thunderbolt port?</h3>
A Thunderbolt is known to be used in systems by users. It is one that helps its users to be able to use one cable to have an access to a high-speed and high-resolution media.
This is often done by using one port along with a cable that is able to access both DisplayPort and PCI Express. Thunderbolt is known to contain technology that has been built into it that helps PCI Express speed to come in a good and better way.
Learn more about ports from
brainly.com/question/10097616
Answer:
Written in C++
#include<iostream>
using namespace std;
int main()
{
int num;
int sum = 0;
cout<<"Input: ";
cin>>num;
int count = 0;
int max = 0;
while(num >= 0)
{
sum+=num;
cin>>num;
count++;
if(num>=max){
max = num;
}
}
cout<<(sum/count)<<endl;
cout<<max<<endl;
return 0;
}
Explanation:
<em>I've added the full source code as an attachment where I use comments as explanation.</em>
<em>See Attachment</em>
Answer: c) Return on investment (ROI)
Explanation:
Return on investment (ROI) is defined as term that measures the performance of single investment efficiency or numerous investment plans. It evaluates and assess plan of investment in form of ratio or percentage.
- Return of investment(ROI) plan is calculated through dividing the return of investment by investment cost.
- Other options are incorrect because cash return on capital invested ,carried forward(CF) and BI (business intelligence) are not used for calculating the investment plan through cost and benefit.Thus, the correct option is option(c)