c++ language tutuorial Program to find if it is possible to add two numbers to get the third: programe: |
1)#include<iostream>
2)using namespace std;
3)int main()
4){
5)int abc;
6)int a;
7)int b;
8)int c;
9)cout<<"input three integers";
10)cin>>a;cin>>b;cin>>c;
11)if(a==b+c || b==a+c || c==a+b)
12)cout<<"yes it is possible";
13)else
14)cout<<"No it is not possible";
15)return 0;
16)}
DESCRIPTION:
This is a c++ program to check that if it is possible to add two numbers to get the third using if else statment.Program to find if it is possible to add two numbers to get the third.This programe is done in c++ programe using if else statment to checkh that if two numbers can add to get the third.This is a c++ object oriented program.
0 Comments