ASCII to Character
PHP
Easy
4 views
Problem Description
You get an integer code (0..255). Print the character for it.
Input Format
One integer x.
Output Format
One character.
Official Solution
<?php
$inputText=trim(stream_get_contents(STDIN));
if($inputText==='') exit;
$x=intval($inputText);
echo chr($x);
?>
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!