[ create a new paste ] login | about

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

C, pasted on Oct 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash


######## [ Config ] ##########
BASE=60;

##############################

while (( "n" != "-1" ))
	do
	
	echo "Please Enter a number:"
	read n;
	
	e=$(( n * 100 /$BASE))
	echo "$n is $e% of $BASE";
	
done


Create a new paste based on this one


Comments: