Sunday, July 14, 2013

Pro 5 . Write the Program to find the given angl is acute or obtuse or right angle.

Algorithm:

1: Integer angel

2: Print "Enter the angle"

3: Input angel

4: If<angel<90)

           Print "angle is acute"

if(angel>90)

           Print "The abgle is Obtus"

if(angle==90)

           Print "The angle is Rightangle

5: Stop

===============================================================


#include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();
int angle;
cout<<"\nEnter The angle";
cin>>angle;
if(angle<90)
cout<<"\n The given angle is Acute";
if(angle>90)
cout<<"\nThe given angle is Obtuse";
if(angle==90)
cout<<"\nThe given angle ia Right angle";
getch();
}



OUTPUT:
Enter The Angle  45
The given angle is Acute

Enter The Angle  90
The given Angle is Right angle