File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
Java_Project_62/src/java_project_62
Java_Project_63/src/java_project_63 Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change 50
50
/app /Java_Project_61 /nbproject /private /
51
51
/app /Java_Project_61 /build /
52
52
/app /Java_Project_62 /nbproject /private /
53
- /app /Java_Project_63 /nbproject /private /
53
+ /app /Java_Project_63 /nbproject /private /
54
+ /app /Java_Project_63 /build /
Original file line number Diff line number Diff line change 4
4
* and open the template in the editor.
5
5
*/
6
6
package java_project_62 ;
7
+ import java .util .Scanner ;
7
8
8
9
/**
9
10
*
@@ -14,8 +15,25 @@ public class Java_Project_62 {
14
15
/**
15
16
* @param args the command line arguments
16
17
*/
18
+ public static void polinom ()
19
+ {
20
+ Scanner tara = new Scanner (System .in );
21
+ System .out .println ("A değerini giriniz : " );
22
+ int a = tara .nextInt ();
23
+ System .out .println ("B değerini giriniz : " );
24
+ int b = tara .nextInt ();
25
+ System .out .println ("C değerini giriniz : " );
26
+ int c = tara .nextInt ();
27
+ System .out .println ("D değerini giriniz : " );
28
+ int d = tara .nextInt ();
29
+ System .out .println ("X değerini giriniz : " );
30
+ int x = tara .nextInt ();
31
+ double polinom = a + (b *x ) + c *Math .pow ((double )x , 2 )+d *Math .pow ((double )x , 3 );
32
+ System .out .println ("Sonuç : " + polinom );
33
+ }
17
34
public static void main (String [] args ) {
18
35
// TODO code application logic here
36
+ polinom ();
19
37
}
20
38
21
39
}
Original file line number Diff line number Diff line change @@ -14,8 +14,26 @@ public class Java_Project_63 {
14
14
/**
15
15
* @param args the command line arguments
16
16
*/
17
+ public static int topla (int x , int y )
18
+ {
19
+ int t = x + y ;
20
+ return t ;
21
+ }
22
+ public static int topla (int x , int y , int z )
23
+ {
24
+ int t = x + y + z ;
25
+ return t ;
26
+ }
27
+ public static double topla (double x , double y )
28
+ {
29
+ double t = x + y ;
30
+ return t ;
31
+ }
17
32
public static void main (String [] args ) {
18
- // TODO code application logic here
33
+ // TODO code application logic here
34
+ System .out .println (topla (2 ,3 ));
35
+ System .out .println (topla (2.3 ,3.6 ));
36
+ System .out .println (topla (1 ,2 ,3 ));
19
37
}
20
38
21
39
}
You can’t perform that action at this time.
0 commit comments