Write a c++ program to enter two angles. Check and print whether they are supplementary or not.
Answers
Answered by
1
Answer:
#include <iostream>
using namespace std;
int man(){
int a, b, c;
cout << "enter the first angle";
cin >> a;
cout << " \nenter the second angle";
cin >> b;
cout << "the angle is ";
((a+b) == 180) ? cout << "supplementary" : "not supplementary";
cout << "\n press enter to exit...... ";
cin >> c;
}
Explanation:
****************atul
Similar questions
Computer Science,
1 month ago
India Languages,
1 month ago
Social Sciences,
3 months ago
Environmental Sciences,
9 months ago
Math,
9 months ago
Science,
9 months ago