Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class RadiansToDegrees_02 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- //сума = депозирана сума + срок на депозита * ((депозирана сума * годишен лихвен процент ) / 12)
- //1.вход: депозирана сума(double), срок(int), процент(double)
- //2. изчисляваме сумата
- //3. отпечатваме
- double depositSum = Double.parseDouble(scanner.nextLine());
- int months = Integer.parseInt(scanner.nextLine());
- double percent = Double.parseDouble(scanner.nextLine());
- double sum = depositSum + months * ((depositSum * (percent / 100)) / 12);
- System.out.println(sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement