0

How to write a program that receives a number as characters (char) from 0-9 and A-F(A=10;B=11...)

How to write a program that receives a number as characters (char) from 0-9 and A-F(A=10;B=11...)

29th Dec 2018, 3:03 PM
Alaa Seh
2 Antworten
0
Hey there! Could you show us your attempt?
29th Dec 2018, 3:05 PM
Diego
Diego - avatar
0
I'm sure that there is something wrong in that but : Char x; Scanf("%c",x); If (x=='A') {x=10;} If (x=='B'l{x=11;} . . . If(x=='1'){x=1;} . . .
29th Dec 2018, 3:12 PM
Alaa Seh