Computer Science, asked by ABHINAVisBACK, 3 months ago

Write a c++ program to enter two angles. Check and print whether they are supplementary or not. ​

Answers

Answered by atulkumargpt
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