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
statuscvo [17]
4 years ago
12

Write a C++ programthat returns the type of a triangle (scalene, equilateral,or

Computers and Technology
1 answer:
bixtya [17]4 years ago
8 0

Answer:

#include<iostream>

using namespace std;

int main(){

   //initialize

   int a, b,c;

   //print the message

   cout<<"Enter the three sides of the triangle: "<<endl;

   //store in the variables

   cin>>a>>b>>c;

   //if-else statement for checking the conditions  

   if(a == b && b == c && a == c){

       cout<<"\nThe triangle is equilateral";

   }else if(a != b && b != c && a != c ){

       cout<<"\nThe triangle is scalene";

   }else{

       cout<<"\nThe triangle is isosceles";

   }

   return 0;

}

Explanation:

Create the main function and declare the three variables for the length of the sides of the triangle.

print the message on the screen for the user. Then the user enters the values and its store in the variables a, b, and c.

use the if-else statement for checking the conditions.

Equilateral triangle: all sides of the triangle are equal.

if condition true, print the equilateral triangle.

Scalene triangle: all sides of the triangle are not equal.

if condition true, print the Scalene triangle.

if both conditions is not true, then, the program moves to else part and print isosceles.

You might be interested in
When you use the Query Editor to run a query that returns an xml type, theManagement Studio displays the XML data in blue with u
Ad libitum [116K]
Answer is c hope this helps
6 0
3 years ago
"To speed up magnetic hard drive performance , ___________ is often used. "
Harrizon [31]

Answer:

disk caching

Explanation:

Hi,

Magnetic hard drives use disk caching to speed up performance. This method is quite ingenious because what it does is that in a section of memory in your pc, it keeps a copy of information that was previously accessed in the hard disk. So, next time if the same data is requested, the system can refer to cache to get quick access rather than going to the hard disk (which is slower).

3 0
3 years ago
Hotels and motels that are part of a ________ share a centralized reservation system and a common image, logo or advertising slo
hoa [83]
It is company , I think .
8 0
3 years ago
In an agile process, story points are an absolute measurement, which differs from function points, as function points are relati
aleksandrvk [35]

Answer: True

Explanation: In an agile project, the story point are for the determination of the level of difficulty in the implementation of the story. They are accurate and also helps in the further improvement.They also help to reduce the time of plan because of being precise.

Function points work in accordance with the function and depends upon the relative measurements and functional size measurement which makes them less precise.Thus, the given statement is true.

6 0
3 years ago
Why is it difficult to convince top management to commit funds to develop and implement a Strategic Information System
jek_recluse [69]

Answer:

It is difficult to <u>convince top management </u>to commit funds to develop and implement an SIS because it can lead to reengineering, which requires businesses to revamp processes to undergo organizational change to gain an advantage.

Explanation:

7 0
4 years ago
Other questions:
  • When formatting documents, ____ settings determine where text begins on a line in relation to the left margin?
    8·1 answer
  • Which of the following is least likely checked by the comprehensive component monitor?
    7·1 answer
  • 10 POINTS! Janis is the only person who can respond to customer inquiries in her small travel company. She receives several cust
    14·2 answers
  • public class Test { public static void main(String[] args) { try { method(); System.out.println("After the method call"); } catc
    12·1 answer
  • Create an array using the makeRandomArray method, then take a start time using System.currentTimeMillis(). Next, run the array t
    13·1 answer
  • For the second one just answer what game engines are please, you don't have to explain.
    8·1 answer
  • The oldest "computer" is thought to be how old? please help i beggiging 20 points
    9·2 answers
  • Please help me with this question<br>it on the picture​
    9·1 answer
  • Marcus traded in his 10-year-old truck for a new one. Because it is the first new truck he
    9·1 answer
  • Your online actions can have real- world consequences. True or false?
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!