[ create a new paste ] login | about

Link: http://codepad.org/tKxbgtUy    [ raw code | output | fork ]

PHP, pasted on Sep 21:
1
2
3
4
5
6
7
<?php

function porcentagem_nx ( $parcial, $total ) {
	    return ( $parcial * 100 ) / $total;
	}

echo porcentagem_nx(20, 100);


Output:
1
20


Create a new paste based on this one


Comments: