package com.codegym.task.task03.task0304;
/*
Task with percentages
*/
public class Solution {
public static double addTenPercent(int i) {
//write your code here
double a = i*10/100;
double tage = i + a;
return tage;
}
public static void main(String[] args) {
System.out.println(addTenPercent(9));
}
}
package com.codegym.task.task03.task0304;
/*
Task with percentages
*/
public class Solution {
public static double addTenPercent(int i) {
//write your code here
//double a = i*10/100;
double tage = i + 0.9;
return tage;
}
public static void main(String[] args) {
System.out.println(addTenPercent(9));
}
}