Area Triangolo Rettangolo in c++

Scrivere un programma in C per il calcolo dell'area di un triangolo rettangolo, si richiede codice in c.
Dati di input: cateto1 e cateto2
Output: Area del Triangolo

Answers

Answer 1

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;

}


Related Questions

you can apply the bold font style by pressing the ____ keyboard shortcut keys.

Answers

Answer:

CRTL + B

Explanation:

Control plus b in series

how to copy bookmarks from one computer to another

Answers

Answer:

I'd recommend making an account for the browser.

Someone please help me

Answers

Answer:

first answer is correct 8

second answer is 12

!!help!!
Why is it a good idea to store numeric data in variables in a program?​

Answers

Answer:

D I think

Explanation:

Ưu nhược điểm của cuộn cảm

Answers

Answer:

yvhchfjfhvjvbjbhkhihihigivjbib

the full meaning of UNIVAC and ENIAC​

Answers

Explanation:

ENIAC - Electronic Numerical Integrator and Calculator. UNIVAC - Universal Automatic Computer (First Digital Computer)

hope it's help you cutty

UNIVAC

UNIVAC, which stood for Universal Automatic Computer, was developed by J. Presper Eckert and John Mauchly, makers of ENIAC, the first general-purpose electronic digital computer.

ENIAC

ENIAC filled an entire room.ENIAC stands for Electronic Numerical Integrator and Computer. John Mauchly and J. Presper Eckert built the machine at the University of Pennsylvania at the behest of the U.S. military.

Hope it helps

Thank You !!!

when is the new season of legacies coming out on netflix

Answers

Answer:

Not sure (I couldn't find info) but It is coming out on CW

Explanation:

It is coming out on CW on October 14 2021 so the Netflix release will be much later than that.

how to book a flight online

Answers

Answer:

https://www.wikihow.com/Book-a-Flight

Explanation:

Here is a simple article I found online on how to do it.

Answer:

First find what airplane you want to attend. Check pricing, seats, legit website, etc.

Next you pick where you want to go and they will show you what is required like id, name, last name, number, etc.

After you apply i think they send you the ticket or you go pick it up.

Hope it helps you

Explanation:

¿Por qué se distribuye la electricidad a alta tensión y no a baja?

Answers

Answer: La energía eléctrica es un producto del voltaje y la corriente (P = IV). También es el producto de la resistencia y el cuadrado de la corriente (P = IxIxR). A medida que transmite energía eléctrica a través de cables, encontrará pérdidas de potencia por resistencia de cables. Cuanto mayor sea la corriente, mayores serán las pérdidas de potencia de resistencia.

What is the correct answer

Answers

Answer:

Multiuser/Multitasking

Explanation:

The question will be answered using the following two points:

- The fact that the operating system allows Ali and his friend to be logged on at the same time is known as a multiuser operating system

- The fact that the operating system allows Ali's friend to access documents while Ali is still logged in is refer to as multitasking.

Add me as brainlist

what is the most important part of the operating system of the computer

Answers

Answer:

motherboard

Explanation:

These 2 questions PLEASEEE (:

Answers

Answer:

on the first one pixels on the second i think it is feathering

How are the functions different and how do i determine the answer

Answers

Answer:

this isn't a fair question...

you'll either get 2,3 or 4

not a nice question

can someone help me, please

Answers

Answer:

eeeee

Explanation: flamingo youtooz

The online underground is used _____. Select 3 options.

Answers

You forgot to put the options

you are creating a bugdet for your new business what should you include
A.All income and expense

B.Fixed expense but not income
C.income but not variable expense
D.Fixed and variable expense but not taxes

Answers

Answer:

A is your answer (not entirely sure but I hope it helps!)

Two people, Alice and Bob are using the key sharing algorithm. They have chosen a clock size of 17 and a base of 5. Alice's private number is 4, while Bob's is 6. The first step in creating the shared key is for each party to generate a PPN based on their private number, the base and the clock size. Alice has already sent her PPN to Bob. She receives Bob's PPN, which is 2. Alice uses Bob's PPN (2), her private number (4), and the clock size (17) to calculate the shared key. What is it

Answers

Answer:

fsfsf

Explanation:

what are titles that i should talk about in my ppt about history of computer science???????
i need help ASAP ! thank you!

Answers

Talk about who created it when it was created and the begging of it. Talk about how it established over the years. Then talk about the achivements like the first computer.

Elements of design that distracts the player from the theme and objective of the are called

catfish
red herrings
haystacks
MacGuffins

Answers

Answer:

Red herrings...?

I think Red herrings?

what is a sensitive compartmented information program

Answers

Answer:

cpu

Explanation:

A company is completing research and development for software which it is planning to produce in approximately 2 years time. Which of the following assumptions should the company make about the transistor density of the hardware which will be used to run this software?Group of answer choices

Answers

Answer:

The transistor density of the hardware which will exist in 2 years time will likely be double the current processing speeds.

Explanation:

The other 3 options are incorrect

Answer:

The transistor density of the hardware which will exist in 2 years time will likely be double the current processing speeds.

Explanation:

I just got that feeling.

where and how could you use a switch made out of aluminum foil or copper

Answers

Answer:

You can use the foil as a conductor for the power and you can use the copper as an insulator to break the electric current

Explanation:

HELP THIS IS SO DIFFICULT

Answers

It would be 11111, and decimal 31
Answer:

Binary: 11111

Decimal: 31

Explanation: Hope I was able to help!

Help me plzzzzzzzzzzzzz

Answers

Answer:

(3)squareroot23)ru(jump)-MArio(input)

Explanation:

Mathematics includes the study of such topics as quantity, structure, space, and change. It has no generally accepted definition. Mathematicians seek and use patterns to formulate new conjectures; they resolve the truth or falsity of such by mathematical proof. -_mathsMARIO.(input_f

Yeni

- - - - -- - - -- - -- - --- -- - - -- Mario

Randy is an active man who just learned how to swim. Which of these
attributes is part of his social identity?
A. Learner
B. Swimmer
C. Man
D. Active

Answers

Answer:

C

Explanation:

social identity is given, chosen, and core. Your given identity consists of the conditions that are outside of your control such as birthplace, gender, certain family roles or physical characteristics.

Randy is an active man who just learned how to swim. This attribute is a part of his social identity as a learner. The correct option is A.

What is social identity?

Social identity is innate, predetermined, and fundamental. Your predetermined identity is made up of circumstances beyond your control, such as your location of birth, gender, certain family responsibilities, or physical traits.

The social identity of a person reveals who they are in terms of the groups they are a part of. Social identity groups are typically described by some of an individual's physical, social, and mental traits.

Here, the man just learned swimming, so his identity will be learner because he is not a pro in swimming and does not have experience.

Therefore, the correct option is A. Learner.

To learn more about social identity, refer to the link:

https://brainly.com/question/13652356

#SPJ2

which way do you swipe in the android os to access shortcuts

Answers

You can swipe from right to left to access shortcuts or the notification bar in Android OS.

mention any four features which a standard computer laboratory should have​

Answers

Answer:

Explanation:

Computers

Outlets

Desks

Servers

The four features that a standard computer laboratory should have​ are a computer system, power source, Desk and chairs, and Server and Lan connectivity.

What is a computer?

A computer is a digital electrical machine that may be configured to automatically perform arithmetic or logical functions. Programs are general collections of operations that modern computers can do. These programs allow computers to do a variety of jobs.

The four features that a standard computer laboratory should have​ are:

Computer systemsPower source to power computerDesk and chairs for computers and studentsServer and Lan Connectivity

Hence, the four features that a standard computer laboratory should have​ are a computer system, power source, Desk and chairs, and Server and Lan connectivity.

Learn more about Computer:

https://brainly.com/question/21080395

#SPJ2

What is the difference between algorithm and program?

Answers

Answer: The difference is that an algorithm is a precise step-by-step plan for a computational procedure that mainly begins with input value, yields, and output value. While a program is instructions written in code to explain to a computer what to do. Like how the CPU can send a command to the GPU to tell it what image to make. The better the CPU the better and faster it can read and complete it's given instructions.

Explanation: Trust me with this.


You set a sensor to wake up every five minutes to measure the temperature.
This is an example of _____
a device.

Answers

The missing term in the fragment would be programming referring to:

You set a sensor to wake up every five minutes to measure the temperature. This is an example of programming a device.

What is programming?

Programming is a computer term to refer to the process by which the necessary actions to carry out a project are devised and ordered.

Currently, the notion of programming is closely associated with the creation of computer applications and video games. However, these processes are associated with most machines because it is possible to program them for a specific operation.

According to the above, in the example of a device to take the temperature every five minutes, it would be the programming of the device for that task.

Learn more about programming in: https://brainly.com/question/11288081

Answer:

configuring

Explanation:

which is an ipsec protocol that authenticates that packets received were sent from the source?

Answers

Answer:Encapsulating Security Payload (ESP)

Explanation:Encapsulating Security Payload (ESP) is a member of the IPsec protocol suite. It provides origin authenticity through source authentication, data integrity through hash functions and confidentiality through encryption protection for IP packets.

Other Questions
hello i have a question how do you like school and how do you like it Solve for the unknown variable.-4 =d + 35 ... no kernel of nourishing corn can come to him but through his toilbestowed on that plot of ground which is given to him to till." As this quotesuggests, do you think a person's success is strongly influenced by his or herupbringing? Why or why not? Which is the difference between proximal and distal positions?A. "Proximal" refers to the part toward the back of the body and "distal" refers to the part towards the front of the bodyB. "Proximal" refers to the part toward the front of the body and "distal" refers to the part towards the back of the bodyC. "Proximal" refers to the part closest and "distal" refers to the part farthest to the center of the bodyD. "Proximal" refers to the part farthest and "distal" refers to the part closest to the center of the body Write paragraph about how people in your family share housework What is the purpose of Creative Commons?A) for teachers to use famous protected artworksB) for people to copy artwork created by other artistsC) for artists to decide how others can use their workD) for artists to pay a fee to protect their artwork Help pls show work :)))) plz help.................... Picture included help stuck on this question Another name for a "pat down" is Kayla works at flower store.the owner tells kayla he wants to take 10 percent off a 18.00$ bouquet. If the bouquet still doesnt sell the owner will again reduce the sale price by 15 percent. Kayla tells the owner the original price by 25 percent because the sale price would be the same a challenge faced by general george washington at the start of the war was that:A- his troops were surrounded by britsh forcesB- his troops lacked weapons C- rival officers wanted his jobD- Britsh forces captured his home and family A student finds that an unknown element readily reacts with alkali metals. What is the best conclusion about the unknown element?Just checking my answerAnswer options:It is in group 17It is an alkaline earth metalIt is a noble gasIt is in group 16 the 1996 population of San Diego, California, was estimated to be about 1,170,000. This was about 3/7 of the estimate for Chicago. What was the approximate of Chicago? BRANLIEST WILL BE GIVEN AND 100 pts PLS HELP ASAP!!!!!!!!!!!!!!!Match the pronoun with the sentence it belongs to.Match Term DefinitionBT A) ________ necesita estudiar en la clase de ciencias.Al B) ________ no necesito un uniforme en mi escuela.CUsted C) ________, Sr. Robinson, necesita cantar en la clase de msica.DYo D) ________ no necesitas el cinturn. Donald Trump wants to build a 100 meter high tower as quickly as possible. He has unlimited resources and an unlimited budget and is willing to spend any amount to get the job done.He has chosen to build the tower with blocks that are 100 meters long and 100 meters wide, but only 1 meter tall. The blocks interlock on top and bottom (like legos). They cannot be stacked sideways or on their ends.Using special lifters, putting one stack on top of another stack takes one week regardless of how high the stacks are.What is the shortest amount of time (weeks) that it will take to build the tower?I looked up the answer, and everywhere it says that it is 10 weeks, but would it work with 1 stack of 100 blocks (1 week)? Read the following quote: "Society in every state is a blessing but government even it it's best state, is but a necessary evil". Why does the quote support the authors purpose? What are the characteristics of muscle? find the equation of the line that passes through the point 0,8 and whose slope is 1. Which list is an analogous color scheme? *-Yellow, Green, Blue-Red, Yellow, Blue-Orange, Green, Purple-All of the above