This program should give the AND of the inputted numbers. What should i do? #inc
ID: 3635905 • Letter: T
Question
This program should give the AND of the inputted numbers. What should i do?#include <iostream>
void main(){int i;int k;cout<<"Enter 0 (false) or 1 (true) for the
first value: "<<endl;cin>>i ;cout<<"Enter 0 (false) or 1 (true) for the
second value: "
<<endl;cin>>k;cout<<"AND"<<endl cout<<"k | 0 |
1"<<endl;cout<<"--- | --- | ---"<<endl;cout<<"0 | 0 |
0"<<endl;cout<<"1 | 0 | 1"<<endl;if(i==1&k==1)cout<<"Result is
TRUE"<<endl;else cout<<"Result is FALSE"<<endl;}
Explanation / Answer
The program had a few compiler errors - fixed that. Just compile and run the program. #include using namespace std; int main() { int i; int k; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.