mantul, udah saya sebar luaskan ke adik2 tingkat dan teman2 saya di kampus :) terus bermanfaat ilmunya dan barokah selalu :D ammiinn
@KelasTerbuka6 жыл бұрын
Waduh...siaaaap!!!!! Thanks bro
@danydash27084 жыл бұрын
Aku sampe sini aja udah bisa bikin aplikasi sederhana, buat mempermudah perhitungan di perkerjaan. Cuma belum bisa bungkus app nya aja haha.. makasih banyak kelas terbuka. Mantep! Mantep banget! Salam buat si otong bang!
@zulfakamal70482 жыл бұрын
tutorialnya keren bang bener2 mudah di pahami..
@tsa_jim_ha_kho4 жыл бұрын
saya like,komen,and subscribe supaya mas nya dapat komisi dari youtube
@sopatersiringoringo8132 жыл бұрын
// while loop public static void main(String[] args) { // program untuk menjumlahkan angka dengan rentang Scanner inputUser = new Scanner(System.in); int nilaiAwal, nilaiAkhir, total; System.out.println("Menggunakan while loop"); System.out.print("masukkan nilai awal : "); nilaiAwal = inputUser.nextInt(); System.out.print("masukkan nilai akhir : "); nilaiAkhir = inputUser.nextInt(); total = 0; while(nilaiAwal
@triabadi45555 жыл бұрын
baru nemu tutorial looping yang jelasinnya se miningful ini..opotoh miningful wkwkwk thanks pak :D
@transferknowledge51534 жыл бұрын
import java.util.Scanner; public class tugas1{ public static void main(String[] args) { Scanner inputUser = new Scanner(System.in); int a,b,c; System.out.print("ini tugasnya pak guru pake for loop hehe"); System.out.print("masukan nilai awal ="); a = inputUser.nextInt(); System.out.print("masukan nilai akhir ="); b = inputUser.nextInt(); c = 0; for (int nilai = a; a
@bad70636 жыл бұрын
Mantap, nnti sekalian praktek buat program tahap per tahap om
@khairi167111 ай бұрын
BANGGGG GUA BISA NGERJAIN PR SEKALI TANPA ADA ERORRRRR.SENENGGG BANGET GUA BANGGGGG🤩😁😁
@herveiulianonatamapurba3437 Жыл бұрын
Jawaban Tugas di Akhir Video: import java.util.Scanner; public class Main { public static void main(String[] args) { int nilaiAwal, nilaiAkhir; int total = 0; boolean kondisi = true; Scanner inputUser = new Scanner(System.in); System.out.print("Masukkan nilai awal : "); nilaiAwal = inputUser.nextInt(); System.out.print("Masukkan nilai akhir : "); nilaiAkhir = inputUser.nextInt(); // Do While Loop : do{ total += nilaiAwal; if(nilaiAwal>=nilaiAkhir){ kondisi = false; } nilaiAwal++; } while(kondisi); // For Loop : for(nilaiAwal = nilaiAwal;nilaiAwal
@falachyusuf69173 жыл бұрын
let me try my best hahaha
@nazwaclash13242 жыл бұрын
do while loop: import java.util.*; public class Tutor22LatihanLoopingSederhana { public static void main(String[] args) { int angkaawal,angkaakhir,total; boolean kondisi=true; Scanner userInput=new Scanner(System.in); System.out.print("masukan angka awal="); angkaawal=userInput.nextInt(); System.out.print("masukan angka akhir="); angkaakhir=userInput.nextInt(); total=0; do{ total=total+angkaawal; System.out.println("ini adalah hasil total penjumlahan="+angkaawal+" menjadi="+total); angkaawal++; if(angkaawal>=angkaakhir){ System.out.println("masukan angka awal lebih kecil dibandingkan angka akhir"); } }while(angkaawal
@aryayunanta14704 жыл бұрын
mantap
@unnamed91494 жыл бұрын
banyakin bang prnya biar sehabis ngoding tambah faham
@fff_febryn3 жыл бұрын
Scanner input = new Scanner(System.in); int hasil = 1; System.out.print("masukan batas : "); int batas = input.nextInt(); for (int nilai = 1; nilai
@agriswidyan96684 жыл бұрын
Permisi bang mw ngumpul tugas :v mohon koreksi dan sarannya public static void main(String[] args) { // Latihan loop sederhana // Program penjumlah angka dengan rentang nilai Scanner inputUser = new Scanner(System.in); int n_awal,n_akhir,total; System.out.print("Masukkan nilai awal = "); n_awal = inputUser.nextInt(); System.out.print("Masukkan nilai akhir = "); n_akhir = inputUser.nextInt(); // inisialisasi nilai total total = 0; while (n_awal
@gussugi97872 жыл бұрын
bang, ,mow nanya, titik koma di perulangan for sebelum x itu buat apa yahh??
@rsyah1936 Жыл бұрын
@@gussugi9787itu buat misahin inisasi, kondisi, sama increment. jadi walopun ngak di tulis ( ; ) mesti ditulis contoh : //contoh normal for ( int i = 0 ; i
@gussugi9787 Жыл бұрын
@@rsyah1936 makasih kak
@boyvinnix61185 жыл бұрын
Serah Tugas sensei for loop int awal, akhir, total; Scanner input = new Scanner(System.in); System.out.print("Nilai Awal = "); awal = input.nextInt(); System.out.print("Nilai Akhir = "); akhir = input.nextInt(); total = 0; for (awal = awal; awal
@rickywahyuhidayat95675 жыл бұрын
System.out.println("program while"); int awal, akhir, total; Scanner input = new Scanner(System.in); System.out.print("Masukan nilai awal = "); awal = input.nextInt(); System.out.print("Masukan nilai akhir = "); akhir = input.nextInt(); System.out.println(""); total = 0; while (awal
@IrsanAchmad2 жыл бұрын
permisi bang saya mau ngumpulin tugasnya, sebelumnya maaf saya telat 3 tahun ngumpulinnya :) import java.util.*; public class coba{ public static void main(String[] args) { Scanner input = new Scanner(System.in); //deklar int awal,akhir,total; //input System.out.print("masukan nilai awal : "); awal = input.nextInt(); System.out.print("masukan nilai akhir : "); akhir = input.nextInt(); //proses total = 0; while(awal
@zulfakamal70482 жыл бұрын
mantap bang..
@bima02052 жыл бұрын
mantab bang package latihan; import java.util.Scanner; public class d13_12_2002d { public static void main(String[] args) { Scanner v = new Scanner(System.in); System.out.println("nilai a: "); int a = v.nextInt(); System.out.println("nilai b: "); int b = v.nextInt(); for (int aa = 0; a
@Music-tp4mh6 жыл бұрын
bang saya salah satu dari subscruber abang saya kuliah di salah satu kampus di bali ,, bang minta tolong buat tutorial bang untuk UAS pemrograman tgl 3 ini di suruh buat calender sama perkalian matriks,, nah.... mumpung konten abang bermanfaat semu janji dah tak like semu video abang😆😆 saya baru blajar pemrograman bang dan masih smester 1 minta tolong bang buat tutoria calender ama perkalian matriks
@danyajysajywo66243 жыл бұрын
package Tugas; import java.util.*; public class PR1 { public static void main(String[]args){ System.out.println("menjumlahkan angka rentang menggunakan Forr Looping"); int nilaiAwal, nilaiAkhir, total; Scanner inputUser = new Scanner(System.in); System.out.println("Masukan nilai awal : "); nilaiAwal = inputUser.nextInt(); System.out.println("Masukan nilai akhir : "); nilaiAkhir = inputUser.nextInt(); for ( total = 0; nilaiAwal
@SyauqiMubarok2 жыл бұрын
buat for loop nya for ( ; nilaiAwal
@rendivs9252 жыл бұрын
ini bwaaaangg: import java.util.*; public class For { public static void main(String[] args) { Scanner inputUser; int total, nilaiAwal, nilaiAkhir; inputUser = new Scanner(System.in); total = 0; System.out.print("nilai awal: "); nilaiAwal = inputUser.nextInt(); System.out.print("nilai akhir: "); nilaiAkhir = inputUser.nextInt(); for (nilaiAwal = nilaiAwal; nilaiAwal
@waspenwaspen94685 жыл бұрын
kieu sanes kang tah,, package com.tutorial; import java.util.*; public class Main { public static void main(String[] args) { System.out.println("==== LATIHAN LOOPING WHILE ===="); Scanner inputUser; int nilaiAwal, nilaiAkhir, total; inputUser = new Scanner(System.in); System.out.println("---> Start Program"); System.out.print("Silahkan masukan nilai awal = "); nilaiAwal = inputUser.nextInt(); System.out.print("Silahkan masukan nilai akhir = "); nilaiAkhir = inputUser.nextInt(); total = 0; while (nilaiAwal
@Uher-ox8pn9 ай бұрын
System.out.println(" Ini adalah PR looping dari kelas terbuka:"); int n_Awal, n_Akhir, n_Total; Scanner inputUser2 = new Scanner(System.in); System.out.print("\tMasukkan nilai awal : "); n_Awal = inputUser2.nextInt(); System.out.print("\tMasukkan nilai akhir : "); n_Akhir = inputUser2.nextInt(); n_Total = 0; System.out.println(" "); for(; n_Awal
@jagadraya46383 жыл бұрын
Bg,latihannya pakek tabel dong,biar jgn source code aja digunakan. Sekalian biar tau fungsi masing2 tabel2 yg disediakan software java itu.
@prenki70516 жыл бұрын
Sip
@SanopJuntak5 жыл бұрын
Tugasku sudah selesai kang.. Kalau ada waktu, jangan lupa ngecompile2 y kang.. import java.util.*; public class LatihanLooping{ public static void main(String[] args) { int x,y,l1,l2,l3 = 0,l4,m1,m2,m3=0,m4,n1,n2,n3 = 0,n4; Scanner i=new Scanner(System.in); System.out.print("Masukkan nilai awal : "); x = i.nextInt(); System.out.print("Masukkan nilai akhir : "); y = i.nextInt(); System.out.println("======Ini adalah While Loop======"); l1 = x; l2 = y; while (l1
@campurnada46335 жыл бұрын
saya ngertinya cuma for doang, gak sulit klo for, do while bingung abis, gak tertarik saya coding pake do while
@aivmcreative3 жыл бұрын
package com.tutorial; import java.util.*; public class Main { public static void main(String[] args) { //program untuk melanjutkan angka dengan rentang int nilAwal, nilAkhir, total; Scanner inputUser = new Scanner(System.in); System.out.print("Masukkan Nilai Awal = "); nilAwal = inputUser.nextInt(); System.out.print("Masukkan Nilai Akhir = "); nilAkhir = inputUser.nextInt(); for (total = 0; nilAwal
@benihandoko46746 жыл бұрын
mantap nih nnti bahas cspc kang pke c++, msih stay nunggu django kang hehe
@dedesubarkahchannel01404 жыл бұрын
SAYA YANG "FOR LOOP" SAJA BANG, KARENA JAWABAN KAWAN-KAWAN UNTUK "FOR LOOP" TIDAK BISA MENGATASI KLO NILAI AWALNYA TIDAK DI MULAI DARI 0 package com.tutorial; import java.util.Scanner; public class main { public static void main(String[] Args) { int dataAwal, dataAkhir, awalLoop,d, hasil; Scanner dataInput = new Scanner(System.in); System.out.print("masukkan data awal = "); dataAwal = dataInput.nextInt(); System.out.print("masukkan data akhir = "); dataAkhir = dataInput.nextInt(); hasil = 0; d = dataAwal; for (awalLoop = dataAwal ; d
@RindraAniko3 жыл бұрын
package io.tutorial; import java.util.Scanner; public class Main { public static void main(String[] args) { int NAwal, NAkhir, Total; Scanner data = new Scanner(System.in); System.out.println(" PROGRAM MENGGUNAKAN FOR LOOP"); System.out.print(" Masuka Nilai Awal : "); NAwal = data.nextInt(); System.out.print(" Masukan Nilai Akhir : "); NAkhir = data.nextInt(); for (Total = 0;NAwal
@rendivs9252 жыл бұрын
import java.util.*; public class DoWhile { public static void main(String[] args) { Scanner inputUser; int nilaiAwal, nilaiAkhir, total; inputUser = new Scanner(System.in); System.out.print("nilai awal: "); nilaiAwal = inputUser.nextInt(); System.out.print("nilai akhir: "); nilaiAkhir = inputUser.nextInt(); total = 0; do { total = total + nilaiAwal; System.out.println("ditambah " + nilaiAwal + " menjadi " + total); nilaiAwal++; } while (nilaiAwal
@alfanmask61875 жыл бұрын
Ini punya saya pak; ---------------------------------------------- package com.newbie; import java.util.Scanner; public class Main { public static void main(String[] args){ // Sum all of the aritmathic value (Sn) // #while loop int firstVal,lastVal,sum; Scanner userInput; userInput = new Scanner(System.in); System.out.print("First value : "); firstVal = userInput.nextInt(); System.out.print("Last value : "); lastVal = userInput.nextInt(); sum = 0; while(firstVal
@rendiyusuf74374 жыл бұрын
System.out.print("Masukan Nilai Awal: "); int awal = sc.nextInt(); System.out.print("Masukan nilai akhir: "); int akhir = sc.nextInt(); // int total = 0; // while (awal
@saefulanasfitriantopo72633 жыл бұрын
import java.util.*; public class LatihanLoop { public static void main(String[] args) { //program menjumlahkan angka dengan rentang // While(); // Dowhile(); For(); } private static void While() { int n_awal, n_akhir, total; Scanner masukScanner = new Scanner(System.in); System.out.println("Masukan nilai awal = "); n_awal = masukScanner.nextInt(); System.out.println("Masukan nilai akhir = "); n_akhir = masukScanner.nextInt(); total=0; while(n_awal
@hafidzahnurhasanah87885 жыл бұрын
Kalo perulangannya nilai awalnya dikali 2 bentuknya jd gmn bang?
@fadhilfatih15885 жыл бұрын
nilai++; nya diganti nilaiAwal= nilaiAwal*2;
@ST0RMZZY1966 жыл бұрын
bang setelah ini bikin pembelajaran android plz
@rakhabadur5 жыл бұрын
Bang lu jadi dosen gua aja dah, dose gua gadanta soalnya wkwk
@mocriezaldy75876 жыл бұрын
Kang, lagi baca2 documentnya "Scanner Java". Apakah emang harus menggunakan method "scanner.close();" kalau tdk pakai apakah ada efek nya?
@IPutuRakaWiratmaIIII Жыл бұрын
baca dimana bang
@RudyStrom6 жыл бұрын
bang saya bisa ngerjain pake do while
@ismailalfiyasin77945 жыл бұрын
FOR //Latihan FOR loop membuat program penjumlahan angka dengan rentang System.out.println(" Program dengan FOR"); int a; int total = 0; for(a = 1; a
@hagoromootsutsuki10706 жыл бұрын
First
@sadamalfian98973 жыл бұрын
apakah video2 di channel ini boleh didownload dan dishare pak untuk teman2 yang kesulitan kuota?
@anandaannisasungkar8672 жыл бұрын
permisi temen2 aku mau izin bertanya untuk total = 0 itu gunanya untuk apa ya? dan apakah itu harus selalu 0?
@wakeywakeyitstimeforschool Жыл бұрын
total = 0 fungsinya untuk assign value ke variabel. Karena sebelumnya cuma declare variable aja (int ..., total;), kamu juga komputer gak tau value dari total itu isinya berapa. Ketika totalnya tidak diassign valuenya, akan terjadi error pada looping pertama pada baris total = total + nilaiAwal; yang mana total pada ruas kanan adalah rancu, gak jelas isinya apa di sana. Jadi, total = 0 adalah untuk menjelaskan isi value dari variable total
@neryyatti68134 жыл бұрын
package com.tutorial; import java.util.* ; public class Main { public static void main(String[] args) { // Latihan Loop Sederhana Scanner yukInput = new Scanner(System.in); int nilaiFirst, nilaiLast, awal, totalSkrg ; awal = 1 ; totalSkrg = 0 ; System.out.print("Masukkan nilai awal = "); nilaiFirst = yukInput.nextInt(); System.out.print("Masukkan nilai akhir = "); nilaiLast = yukInput.nextInt(); // System.out.println("======= C A R A F O R L O O P B Y N Y ======="); // for (; nilaiLast >= nilaiFirst ;){ // totalSkrg = totalSkrg + nilaiFirst++ ; // System.out.println("Total penjumlahan deret ke-" + awal + " adalah " + totalSkrg); // awal++ ; // } // System.out.println(" ======= C A R A D O W H I L E L O O P B Y N Y ======="); // boolean kondisi = true ; // kondisi = nilaiFirst nilaiLast) { // kondisi = false; // } // }while(kondisi); System.out.println(" ======= C A R A W H I L E L O O P B Y K E L A S T E R B U K A ======="); while (nilaiFirst
@kiipssmedia32916 жыл бұрын
Bang minta email-nya dong.. mau bertanya lebih intens
@user-tb1it5md3j3 жыл бұрын
IZIN KUMPUL TUGAS PAK, MOON MAAP TELAT 2 TAHUN, KARENA SAYA MABA. /** * Do While */ import java.util.Scanner; public class tugas { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Masukkan nilai awal = "); int awal = input.nextInt(); System.out.print("Masukkan nilai akhir = "); int akhir = input.nextInt(); int total=0; do { total+=awal; System.out.println("ditambah "+awal+" menjadi "+(total)); awal++; } while (awal
@rismaanelita194 Жыл бұрын
import java.util.*; public class LatihanLoopSederhana { public static void main(String[] args) { //var dummy=yang nilainya berubah terus //program menjumlahakan angka dengan rentan int nilAwal, nilaiAkhir, total; Scanner inputUser = new Scanner (System.in); System.out.println("masukan nilai awal="); nilAwal = inputUser.nextInt(); System.out.println("masukan nilai akhir="); nilaiAkhir = inputUser.nextInt(); /* total=0; while(nilAwal
@rocirentama68803 жыл бұрын
public static void main(String[] args) { Scanner inputUser =new Scanner(System.in); int nilaiawal = inputUser.nextInt(); int akhir = inputUser.nextInt(); int total = 0; do { total = total +nilaiawal; System.out.println(total); nilaiawal++; } while (nilaiawal
@lharun83205 жыл бұрын
#
@mirzaali30585 жыл бұрын
wtf iklan 4,29 detik gk bisa di skip
@mirzaali30585 жыл бұрын
4 menit 29 detik maksudnya
@sahlianasitumorang94035 жыл бұрын
201543500537 hadiiiiir
@iqballego2 жыл бұрын
DO WHILE LOOP package com.tutorial; import java.util.Scanner; public class DoWhileLoop { public static void main (String[] args){ int awal,akhir,total; total = 0; boolean kondisi = true; Scanner inputUser = new Scanner (System.in); System.out.print("masukan nilai awal = "); awal = inputUser.nextInt(); System.out.print("masukan nilai akhir = "); akhir = inputUser.nextInt(); do { total = total + awal; System.out.println(" ditambah " + awal + " = " + total); awal++; if (awal > akhir){ kondisi = false; } } while (kondisi); } } FOR LOOP package com.tutorial; import java.util.Scanner; public class ForLoop { public static void main(String[] args){ int awal,akhir,total; Scanner inputUser = new Scanner (System.in); total = 0; System.out.print("masukan nilai awal = "); awal = inputUser.nextInt(); System.out.print("masukan nilai akhir = "); akhir = inputUser.nextInt(); for (; awal
@atrasyahza8012 жыл бұрын
permisi bang mau setoran tugas nih mohon koreksinya Terimakasih sehat selalu berkah selalu bang package com.tutorial; import java.util.*; public class main { public static void main(String[] args){ // program untuk menjumlahkan angka dengan rentang System.out.println("menggunakan WHILE"); int nilaiAwal, nilaiAkhir, total; Scanner inputUser = new Scanner(System.in); System.out.println("nilai awal ="); nilaiAwal = inputUser.nextInt(); System.out.println("nilai Akhir ="); nilaiAkhir = inputUser.nextInt(); total = 0; while (nilaiAwal
@danyajysajywo66243 жыл бұрын
package Tugas; import java.util.*; public class PR { public static void main(String[]args){ System.out.println("menjumlahkan angka rentang menggunakan do while"); int nilaiAwal,nilaiAkhir,Total; Scanner inputUser = new Scanner (System.in); System.out.println("Masukan nilai awal = "); nilaiAwal = inputUser.nextInt(); System.out.println("masukan nilai akhir = "); nilaiAkhir = inputUser.nextInt(); Total = 0; do{ Total = Total + nilaiAwal; System.out.println("ditambah " + nilaiAwal + " menjadi " + Total); nilaiAwal++; }while (nilaiAwal