We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- Introduction
- Input and Output
- Discussions
Input and Output
Input and Output
Sort by
recency
|
761 Discussions
|
Please Login in order to post a comment
Came back and challenged my self to put it in a variable.
int main() { int a,b,c;
}
include
using namespace std; int main (){ int a,b,c; cout << " please enter teh three number between one and one thousand"; cin >> a >>b >>c ; if (1<= a & 1<= b & 1<= c & a <= 1000 & b <= 1000 & c <= 1000 ) { cout << " result is " << (a+b+c); } else { cout<< " please enter the correct numbers" ; } return 0; }
[CapCut](https://capcut apk )
int main() { int a,b,c,sum; cin>>a>>b>>c; sum=a+b+c; cout<
[CapCut](https://capcut apk )
int main() { int a,b,c,sum; cin>>a>>b>>c; sum=a+b+c; cout<
include
include
using namespace std;
int main() { int a,b,c,sum; cin>>a>>b>>c; sum=a+b+c; cout< return 0; }