I have run this program in run tab..
same o/p is generated from my program..
till error it is displaying Why...??
package com.codegym.task.task03.task0304;
/*
Task with percentages
*/
public class Solution {
public static double addTenPercent(int i) {
//write your code here
double ans;
ans=(i)+(i/100)*10;
return ans;
}
public static void main(String[] args) {
System.out.println(addTenPercent(9));
}
}