78.5k views
4 votes
Brianna has a process that has two inputs but only one output.

- This is an error as there needs to be the same amount of inputs as outputs
- This is an error as process do not have inputs or outputs
- This is normal as all processes have two inputs and one output
- This is normal as all processes need at least one input and at least one output
- This is an error as processes only produce output

User Muratgu
by
5.6k points

1 Answer

4 votes

Answer:

This is normal as all processes need at least one input and at least one output

Step-by-step explanation:

In a process, it is only necessary to have at least one input and one output. However, it is possible to have multiple inputs and a single output, or even have a single input and multiple outputs. Here is an example of a process with two inputs and a single output in c ++. Which is simply a sum:

#include <iostream>

int main()

{

// Variables.

int NumberA;

int NumberB;

int Sum;

//Requesting numbers.

std::cout<<"Introduce the first integer:\\"; std::cin>>NumberA;

std::cout<<"Introduce the second integer:\\"; std::cin>>NumberB;

//Sum

Sum=NumberA+NumberB;

std::cout<<"The sum is:"<<Sum<<::std::endl;

return 0;

}

User Saeed Sharman
by
5.4k points