1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
spayn [35]
2 years ago
6

Area Triangolo Rettangolo in c++

Computers and Technology
1 answer:
Leona [35]2 years ago
4 0

Answer:

#include <iostream>

using namespace std;

void askCat(int &cateto1, int &cateto2);

int AreaRett(int cateto1, int cateto2, int &area);

void stampaRisultato(int area);

int main()

{

  int cateto1, cateto2, area;

  askCat(cateto1, cateto2);

  area = AreaRett(cateto1, cateto2,area);

  stampaRisultato(area);

}

void askCat(int &cateto1, int &cateto2)

{

 cout << "Inserisci lunghezza cateto1: ";

 cin >> cateto1;

 cout << "Inserisci lunghezza cateto2: ";

 cin >> cateto2;

}

int AreaRett(int cateto1, int cateto2, int &area)

{

 area = (cateto1*cateto2)/2;

 return area;

}

void stampaRisultato(int area)

{

 cout << "L'area del triangolo rettangolo e': " << area << endl;

}

You might be interested in
CALL US ☏1≠855☼241☼6569 Aol mail not working on windows 10 ||123||**USA***
Nina [5.8K]

Answer:

umm

Explanation:

3 0
3 years ago
When should you use an array in developing a program? Explain why it is important to apply arrays in a program.
agasfer [191]

Answer:

The answer is below

Explanation:

There are various reasons to apply arrays in a program. Some of which includes:

1. Arrays provides users to easily save specified numbers of the element in them.

2. It easily store data of similar types and sizes.

3. It allows users to store data in various dimensional arrays.

4. It eliminates deficit of memories for the location of its elements

5 0
3 years ago
Instructions:Select the correct answer.
Luba_88 [7]
<span>A.) system administrator

Hope that helps</span>
8 0
3 years ago
Read 2 more answers
What are the links between the operating systems, the software, and hardware components in the network, firewall, and IDS that m
LuckyWell [14K]

Answer:

In several organizations, the operating system (OS) functions at the core of the personal computers in use and the servers. The OS ought to be secure from external threats to its stored data and other resources.

Explanation:

In this regard, Intrusion detection systems play a critical role in protecting the sensitive data, along with software firewalls. Hardware firewalls protect the hardware elements in the network (such as storage drivers etc), the IDS and as well as the IPS.

4 0
3 years ago
How do I make sure I have full access to this app where do I put in payment information
marissa [1.9K]

Answer:

click on your profile and im pretty sure it says privacy information and click on that and from there it will ask you for your information

Explanation:

6 0
2 years ago
Other questions:
  • The type of meter used to test downstream digital signal quality
    12·1 answer
  • The main characteristic of ____ is that its source code is published with the software.
    7·1 answer
  • Permission must be sought in order to use a play that is in the public domain. True or False?
    11·2 answers
  • Haley is helping to choose members for a customer satisfaction team. Which
    6·1 answer
  • What is the main difference between a search engine and a web browser?
    6·2 answers
  • Write the correct statements for the above logic and syntax errors in program below.
    12·1 answer
  • Select the correct answer from each drop-down menu. Computer memory stores data as a series of 0s and 1s. In computer memory, re
    14·1 answer
  • What does the coding phase involve?
    11·2 answers
  • What is the difference between a crosstab query and a subquery?
    11·2 answers
  • A leading global vendor of computer software, hardware for computer, mobile and gaming systems, and
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!