File tree Expand file tree Collapse file tree 12 files changed +191
-0
lines changed
Expand file tree Collapse file tree 12 files changed +191
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <classpath >
3+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11" >
4+ <attributes >
5+ <attribute name =" module" value =" true" />
6+ </attributes >
7+ </classpathentry >
8+ <classpathentry kind =" src" path =" src" />
9+ <classpathentry kind =" output" path =" bin" />
10+ </classpath >
Original file line number Diff line number Diff line change 1+ /bin /
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <projectDescription >
3+ <name >P57P58</name >
4+ <comment ></comment >
5+ <projects >
6+ </projects >
7+ <buildSpec >
8+ <buildCommand >
9+ <name >org.eclipse.jdt.core.javabuilder</name >
10+ <arguments >
11+ </arguments >
12+ </buildCommand >
13+ </buildSpec >
14+ <natures >
15+ <nature >org.eclipse.jdt.core.javanature</nature >
16+ </natures >
17+ </projectDescription >
Original file line number Diff line number Diff line change 1+ eclipse.preferences.version =1
2+ encoding//src/P57P58.java =UTF-8
Original file line number Diff line number Diff line change 1+ eclipse.preferences.version =1
2+ org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode =enabled
3+ org.eclipse.jdt.core.compiler.codegen.targetPlatform =11
4+ org.eclipse.jdt.core.compiler.codegen.unusedLocal =preserve
5+ org.eclipse.jdt.core.compiler.compliance =11
6+ org.eclipse.jdt.core.compiler.debug.lineNumber =generate
7+ org.eclipse.jdt.core.compiler.debug.localVariable =generate
8+ org.eclipse.jdt.core.compiler.debug.sourceFile =generate
9+ org.eclipse.jdt.core.compiler.problem.assertIdentifier =error
10+ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures =disabled
11+ org.eclipse.jdt.core.compiler.problem.enumIdentifier =error
12+ org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures =warning
13+ org.eclipse.jdt.core.compiler.release =enabled
14+ org.eclipse.jdt.core.compiler.source =11
Original file line number Diff line number Diff line change 1+ /**
2+ * P5758 : ب.م.م و ک.م.م دو عدد با تکرار نامعین
3+ *
4+ * @author Gholamali Nejad Hajali Irani
5+ * @version 1.0
6+ * @since 2021/01/15
7+ * @Team gClassAcademy
8+ * @Website https://www.youtube.com/c/gClassAcademy
9+ */
10+
11+ import java .util .Scanner ;
12+
13+ public class P57P58
14+ {
15+ public static void main (String [] args )
16+ {
17+ Scanner input =new Scanner (System .in );
18+
19+ // گرفتن دو عدد از کاربر
20+ int m =0 ; // عدد اول
21+ int n ; // عدد دوم
22+
23+ System .out .println ("Enter m: " );
24+ m =input .nextInt ();
25+ System .out .println ("Enter n: " );
26+ n =input .nextInt ();
27+
28+ if (m <n )
29+ {
30+ int temp =m ;
31+ m =n ;
32+ n =temp ;
33+ }
34+ int m1 =m ;
35+ int n1 =n ;
36+ //System.out.println(m + "," + n);
37+
38+ while (m %n != 0 )
39+ {
40+ int r = m %n ;
41+ m =n ;
42+ n =r ;
43+ }
44+
45+ System .out .println ("BMM is: " + n );
46+
47+ System .out .println ("KMM is:" + m1 *n1 / n );
48+
49+
50+
51+
52+ }// end of main
53+ }// end of class
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <classpath >
3+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11" >
4+ <attributes >
5+ <attribute name =" module" value =" true" />
6+ </attributes >
7+ </classpathentry >
8+ <classpathentry kind =" src" path =" src" />
9+ <classpathentry kind =" output" path =" bin" />
10+ </classpath >
Original file line number Diff line number Diff line change 1+ /bin /
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <projectDescription >
3+ <name >P59</name >
4+ <comment ></comment >
5+ <projects >
6+ </projects >
7+ <buildSpec >
8+ <buildCommand >
9+ <name >org.eclipse.jdt.core.javabuilder</name >
10+ <arguments >
11+ </arguments >
12+ </buildCommand >
13+ </buildSpec >
14+ <natures >
15+ <nature >org.eclipse.jdt.core.javanature</nature >
16+ </natures >
17+ </projectDescription >
Original file line number Diff line number Diff line change 1+ eclipse.preferences.version =1
2+ encoding//src/P59.java =UTF-8
You can’t perform that action at this time.
0 commit comments