a
This commit is contained in:
12
WS22_23/EidP/EidP-Ueb02-Aufgabe5/Polynom.java
Normal file
12
WS22_23/EidP/EidP-Ueb02-Aufgabe5/Polynom.java
Normal file
@@ -0,0 +1,12 @@
|
||||
import java.util.*;
|
||||
class Polynom{
|
||||
public static void main(String args[]){
|
||||
Scanner sc = new Scanner(System.in);
|
||||
int x = sc.nextInt();
|
||||
int mon1 = 5 * x;
|
||||
int mon2 = mon1 + 3 * x * x;
|
||||
mon1 = mon2 + x * x * x;
|
||||
System.out.println(mon1);
|
||||
sc.close();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user