Here's the part of the codes where I tried to use boolean expression:
May I know that how can I get started with the body?Code:#include <iostream>
using namespace std;
int main()
{
int num;
cout << "8-bit Binary Number=";
cin >> num;
bool valid = true;
.
.
.
.
.
.
.
.
.
if (valid)
{
cout << "Decimal Number = " << sum;
}
}
Thanks for your guides!