{"id":808,"date":"2013-07-11T12:25:29","date_gmt":"2013-07-11T05:25:29","guid":{"rendered":"http:\/\/blog.kusumoto.co\/?p=808"},"modified":"2013-07-11T12:25:29","modified_gmt":"2013-07-11T05:25:29","slug":"lab-java-1172556","status":"publish","type":"post","link":"https:\/\/oldblog.kusumotolab.com\/?p=808","title":{"rendered":"Lab Java 11\/7\/2556"},"content":{"rendered":"<h2>Lab Loop<\/h2>\n<pre lang=\"java\">\r\n\/*\r\n Kusumoto Lab1 Programming\r\n http:\/\/kusumoto.co\r\n *\/\r\nimport java.util.Scanner;\r\nclass Lab1 {\r\n\tpublic static void main(String[] args) {\r\n\t\t\/\/announce variable\r\n\t\tint loop;\r\n\t\tint loop_start;\r\n\t\tint fac_start;\r\n\t\tint fac;\r\n\t\tint time;\r\n\t\tint time_temp = 1;\r\n\t\tint time_temp1 = 0;\r\n\t\tint temp = 0;\r\n\t\t\/\/input method setup\r\n\t\tScanner loop1 = new Scanner (System.in);\r\n\t\tScanner fac1 = new Scanner (System.in);\r\n\t\t\/\/input loop2\r\n\t\tSystem.out.print(\"Enter Number Loop :: \");\r\n\t\tloop = loop1.nextInt();\r\n\t\t\/\/loop construction\r\n\t\tfor (loop_start = 1;loop_start <= loop; loop_start++) {\r\n\t\t\t\/\/factorial input\r\n\t\t\tSystem.out.print(\"Enter factorial :: \");\r\n\t\t\tfac = fac1.nextInt();\r\n\t\t\t\/\/factorial construction\r\n\t\t\tfor (fac_start = 1;fac_start <= fac;fac_start++) {\r\n\t\t\t\tSystem.out.print(\"Times =\"+fac_start);\r\n\t\t\t\ttime_temp = fac_start * time_temp;\r\n\t\t\t\tSystem.out.println(\"   Sum = \"+time_temp);\r\n\t\t\t\ttime_temp1 = time_temp+time_temp1;\r\n\t\t\t}\r\n\t\t\t\/\/Overrall Construction\r\n\t\t\r\n\t\t\tSystem.out.println(\"Total : \"+time_temp1);\r\n\t\t\tSystem.out.println(\"==============================\");\t\r\n\t\t\t\ttemp = \ttime_temp1+temp;\r\n\t\t\t\ttime_temp1 = 0;\r\n\t\t\t\ttime_temp = 1;\r\n\t\t}\r\n\t\t\/\/Show Overrall\r\n\t\tSystem.out.println(\"Overrall : \"+temp);\r\n\t\t\r\n\t}\r\n}\r\n<\/pre>\n<h2>\u0e2a\u0e39\u0e15\u0e23\u0e04\u0e39\u0e13<\/h2>\n<pre lang=\"java\">\r\n\/*\r\n Kusumoto Lab2 Programming\r\n http:\/\/kusumoto.co\r\n *\/\r\nimport java.util.Scanner;\r\nclass lab2 {\r\n\tpublic static void main(String[] args) {\r\n\t\t\/\/announce variable\r\n\t\tint master;\r\n\t\tint slave;\r\n\t\tint temp;\r\n\t\t\/\/input setup\r\n\t\tScanner master1 = new Scanner (System.in);\r\n\t\tScanner slave1 = new Scanner (System.in);\r\n\t\t\/\/input data\r\n\t\tSystem.out.print(\"Enter Number 1 : \");\r\n\t\tmaster = master1.nextInt();\r\n\t\tSystem.out.print(\"Enter Number 2 : \");\r\n\t\tslave = slave1.nextInt();\r\n\t\tSystem.out.println(\"===============================\");\r\n\t\t\/\/loop construction\r\n\t\tfor (temp = 1;temp<=slave;temp++) {\r\n\t\t\tSystem.out.println(master+\" x \"+temp+\" = \"+master*temp);\r\n\t\t}\r\n\t\tSystem.out.println(\"===============================\");\r\n\t}\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Lab Loop \/* Kusumoto Lab1 Programming http:\/\/kusumoto.co *\/ import java.util.Scanner; class Lab1 { public static void main(String[] args) { \/\/announce variable int loop; int loop_start; int fac_start; int fac; int time; int time_temp = 1; int time_temp1 = 0; int temp = 0; \/\/input method setup Scanner loop1 = new Scanner (System.in); Scanner fac1 = [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[59,9],"tags":[],"class_list":["post-808","post","type-post","status-publish","format-standard","hentry","category-java","category-private"],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p3OMEb-d2","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts\/808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=808"}],"version-history":[{"count":2,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts\/808\/revisions"}],"predecessor-version":[{"id":810,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=\/wp\/v2\/posts\/808\/revisions\/810"}],"wp:attachment":[{"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oldblog.kusumotolab.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}