File tree Expand file tree Collapse file tree 2 files changed +18
-2
lines changed
app/Java_Project_75/src/java_project_75 Expand file tree Collapse file tree 2 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 6969/app /Java_Project_73 /nbproject /private /
7070/app /Java_Project_74 /nbproject /private /
7171/app /Java_Project_74 /build /
72- /app /Java_Project_75 /nbproject /private /
72+ /app /Java_Project_75 /nbproject /private /
73+ /app /Java_Project_75 /build /
Original file line number Diff line number Diff line change 44 * and open the template in the editor.
55 */
66package java_project_75 ;
7-
7+ import java . util . Scanner ;
88/**
99 *
1010 * @author ismailtasdelen
@@ -14,8 +14,23 @@ public class Java_Project_75 {
1414 /**
1515 * @param args the command line arguments
1616 */
17+ public static void aritmekseri (int a , int d , int n )
18+ {
19+ for (int i = 0 ; i < n ; i ++)
20+ {
21+ int sonuc = a +i *d ;
22+ System .out .println (sonuc );
23+ }
24+ }
1725 public static void main (String [] args ) {
1826 // TODO code application logic here
27+ Scanner tara = new Scanner (System .in );
28+ System .out .println ("A değerini belirleyiniz : " );
29+ int a = tara .nextInt ();
30+ System .out .println ("B değerini belirleyiniz : " );
31+ int d = tara .nextInt ();
32+ System .out .println ("N değerini belirleyiniz : " );
33+ int n = tara .nextInt ();
1934 }
2035
2136}
You can’t perform that action at this time.
0 commit comments