Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 24d1512

Browse files
author
İSMAİL TAŞDELEN
committed
master
1 parent 4576771 commit 24d1512

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

‎.gitignore‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,5 @@
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/

‎app/Java_Project_75/src/java_project_75/Java_Project_75.java‎

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* and open the template in the editor.
55
*/
66
package java_project_75;
7-
7+
importjava.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
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /