[ create a new paste ] login | about

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

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:
posted by dsdsdvsdvsdv on Mar 30
15


reply