Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static double getPercent(double value) {
- double percent;
- percent = value / 100;
- return percent;
- }
- public static void main(String args[]) {
- int i = 0;
- while (i <= 100) {
- System.out.println(getPercent(i));
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement