TOPIC
Presentation error(5%), PHP
Hulk11 asked 3 years ago
I believe my code is correct, then why am i getting 5% Presentation Error?
My code-
<?php $x=0; $y=0; $a = (int)readline(); for($i=0; $i<$a; $i++) { $n = (int)readline(); if ($n>=10 && $n<=20) $x++; else $y++; } echo $x." in\r\n".$y." out".PHP_EOL; ?>
This topic has not been answered yet. Be the first!