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]
3 years ago
6

Area Triangolo Rettangolo in c++

Computers and Technology
1 answer:
Leona [35]3 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
How many fixes are available for Adobe Photoshop CS4 (64 Bit)?
arsen [322]

Answer:

There are three (3) fixes in adobe cs4.

Explanation:

Adobe photoshop cs4 is a version of the creative cloud's professional graphic applications used to edit pictures, design interfaces, make graphical illustrations, draw and animate the drawings, etc.

It can be installed in several computer operating system platforms like linux, mac and windows. The adobe photoshop cs4 doesn't support the windows installation and might run into several issues. There are other issues in other supported platforms, but unlike for windows, there are three fixes for these problems.

4 0
3 years ago
Write a loop that displays all possible combinations of two letters where the letters are 'a', or 'b', or 'c', or 'd', or 'e'. T
nikitadnepr [17]

Answer:

The program to this question can be given as:

Program:

#include <stdio.h> //include header file.

int main() //defining main method

{

char i,j; //defining variable

for  (i='a'; i<='e'; i++) //outer loop for column

{

for (j='a'; j<='e'; j++) //inner loop for row

{

printf("%c%c\n",i,j); //print value

}

}

return 0;

}

Output:

image.

Explanation:

  • In the above C language program, firstly a header file is included. Then the main method is defined in this, a method contains a char variable that is "i and j". This variable is used in for loop, that is used to print the pattern.
  • To print the following patter two for loop is used the outer loop is used for print columns and the inner loop prints row.
  • In C language to print character, we use "%c" inside a loop print function is used, that prints characters.

3 0
4 years ago
In the mouse windows porperty, you can
nignag [31]
<span> specify new tasks for the mouse to perform. </span>
7 0
4 years ago
you are currently logged in using the badams account. you want to view the contents of the /etc/inittab file, but you are not al
Blizzard [7]

The command that can be used to view the file is su -c "cat /etc/inittab" -l. The command in computer is a code that is used to tell (someone) to do something in a forceful and often official way.

A command in computer refers to a single order from a user to the computer's operating system or to an application to show a service, such as "Show me all my files" or "Run this program for me.

Kind of command there are:

  1. Group management commands.
  2. Array management commands.
  3. Global commands.

The commands are a kind of sentence to tell someone to do something. The other kind of command are: questions, exclamations and statements.

Learn more about the command, here brainly.com/question/13994833

#SPJ4

4 0
1 year ago
A government authority or license excluding others from making, using, or
prohojiy [21]

Answer:

A. Patent

Explanation:

8 0
2 years ago
Other questions:
  • Given the Query Data Type, which of the following is incorrectly matched with the corresponding Storage Data Type?
    15·1 answer
  • Identify two related tables in the JustLee Books database. Identify the common field between the two tables. Decide which column
    11·1 answer
  • Based on the type of document you want to create, you must first select the page
    15·2 answers
  • Jesse earned $420 a week, and he worked 5 days a week. what is his daily wage?
    10·2 answers
  • Marissa, a 21-year-old young woman, is working as an intern at a software company. She has recently graduated from college. She
    6·1 answer
  • You should check your battery ___________. Every week Never Every six months Every 30,00 miles
    8·2 answers
  • Master pages are used to create
    7·1 answer
  • Keli is unable to find a shape that meets her needs. Which feature in Power Point should she use to create shapes that are compl
    6·1 answer
  • Before her shift as a cashier at the grocery store, Carla pulls her hair back into a ponytail and makes sure her fingernails are
    15·2 answers
  • Why are laptop employment of computer popular these days​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!