fn main() {
let ascii_char = 'A';
let ascii_value = ascii_char as u32; // Convert to ASCII value
let hex_value = format!("{:x}", ascii_value); // Convert to hex
println!("The hexadecimal value of '{}' is: 0x{}", ascii_char, hex_value);
}
/*
run:
The hexadecimal value of 'A' is: 0x41
*/