Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Task11 {
- public static void main(String[] args) {
- double F, x;
- Scanner in = new Scanner(System.in);
- x = in.nextDouble();
- if(x <= 3) F = x * x - 3 * x + 9;
- else F = 1 / (x * x * x + 6);
- System.out.println(F);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement