Assignment
University
Mt. San Antonio CollegeCourse
College Computer SciencePages
1
Academic year
2023
Avaiya Priyank
Views
0
p {margin: 0; padding: 0;} .ft00{font-size:27px;font-family:Caladea;color:#000000;} .ft01{font-size:16px;font-family:Carlito;color:#000000;} .ft02{font-size:16px;font-family:Carlito;color:#000000;} Q3 Convert integer into different format. x=int(input("Input ineger number:\t")) print("Binary: " + bin(x)) print("Hexadecimal: " + hex(x)) print("Octal: " + oct(x)) VICEVERSA:- x=(input("input binary number:\t")) print(int(x,2))
Integer Conversion: Binary, Hexadecimal, and Octal Formats
Please or to post comments