when i ran the program i got 9.9
so i think its correct because if you increase 9 by 10 percent the answer is 9.9
please explain me what's wrong
package com.codegym.task.task03.task0304;
/*
Task with percentages
*/
public class Solution {
public static double addTenPercent(int i) {
//write your code here
double addTenPercent = 1.1;
return addTenPercent*9 ;
}
public static void main(String[] args) {
System.out.println(addTenPercent(9));
}
}