+ 3

a number N is passed as input . Print the multiples of 5 from 1 to N (inclusive N) seperated by a space

20th Aug 2018, 1:26 PM
THARUN KUMAR M
THARUN KUMAR M - avatar
3 Answers
+ 3
Put the desired language in tags please!
20th Aug 2018, 1:43 PM
Ipang
+ 1
<?php function counter($n) { $i = 1; do { echo " 5 * $i =". 5*$i ."<br/>"; $i++; } while($i <= $n); } counter(10); ?>
21st Aug 2018, 6:47 AM
Amit Kumar
Amit Kumar - avatar