Write program that prints the decimal equivalent of a binary number. Input a 8digit containing 0s and1s print decimal equivalent | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write program that prints the decimal equivalent of a binary number. Input a 8digit containing 0s and1s print decimal equivalent

Use only If and else no loop.or arry

1st Nov 2020, 6:21 PM
FAIZAN JAVED
FAIZAN JAVED - avatar
2 Answers
- 1
I have a assignment and it is mentioned there to use only if and else
1st Nov 2020, 6:35 PM
FAIZAN JAVED
FAIZAN JAVED - avatar
- 1
I need help don't know how to start I have just started c++
1st Nov 2020, 7:20 PM
FAIZAN JAVED
FAIZAN JAVED - avatar