package com.codegym.task.task03.task0304;
/*
Task with percentages
*/
public class Solution {
public static double addTenPercent(int i) {
double a = i*0.1;
return a;
}
public static void main(String[] args) {
System.out.println(addTenPercent(9));
}
}
can someone tell me what I did wrong
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Parthiban P
13 December 2019, 17:48
you have calculated the 10 percent of 9. but, you should do ____________? Please read the question again, loudly! Happy coding!!!
0
Totoff
11 December 2019, 18:17
You did not add, you just calculated 10pct.
0