Write a c++ program to enter two angles. Check and print whether they are
supplementary or not.
Answers
Answered by
0
Answer:
#include<iostream>
using namespace std;
void main()
{
int a, b, sum;
cout<<"Enter the first angle:";
cin>>a;
cout<<"Enter the second angle:";
cin>>b;
sum=a+b;
if(sum==180)
{
cout<<"The angles are supplementary";
}
else
{
cout<<"The angles are not supplementary";
}
}
Similar questions