"You Must Write The Anwser In Binary Using The "0bxxx" Format."

Skip to ContentProfile image of anonymousSubmitted by anonymousover 11 years"You must write the anwser in binary using the "0bxxx" format."

this is my code..

one = 0b1 two = 0b10 three = 0b11 four = 0b100 five = 0b101 six = 0b110 seven = 0b111 eight = 0b111+0b1 nine = 0b111+0b10 ten = 0b101*0b10 eleven = 0b101+0b110 twelve = 0b110 * 0b10

it says: “Oops, try again. You must write the anwser in binary using the “0bxxx” format.”

any help?

Answer 515625b9bc25139df900088d

2 votes

Permalink

There’s no need to use arithmetic operations in this exercise. Just write out the number in binary form regardless of it it’s over three characters in length. I don’t think when it was written it needs to be in 0bxxx form that it was meant to limit the length of your response. It could be 0bxxxxxxxxx etc etc

Profile image of courseJumper77076Submitted by courseJumper77076over 11 years

Answer 5193378ac09cc478c0001e1a

2 votes

Permalink

The problem is that the result of these calculations 0b101+0b110 will be displayed by its decimal values. So if you want to write it this way you’d need to use bin(0b101+0b110). But as courseJumper77076 already mentioned its not that challenging :D

Profile image of haxor789Submitted by haxor789over 11 years

Answer 5165b6face2948b86a000a86

1 vote

Permalink

one = 0b1 two = 0b10 three = 0b11 four = 0b100 five = 0b101 six = 0b110 seven = 0b111 eight = 0b1000 nine = 0b1001 ten = 0b1010 eleven = 0b1011 twelve = 0b1100

Profile image of dan.ghimpuSubmitted by dan.ghimpuover 11 years

Popular free courses

  • Free course

    Learn SQL

    In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Checker DenseBeginner Friendly4 Lessons
  • Free course

    Learn JavaScript

    Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Checker DenseBeginner Friendly11 Lessons
  • Free course

    Learn HTML

    Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Checker DenseBeginner Friendly6 Lessons
Explore full catalog

Từ khóa » C 0b11