{ Judul }
while_loops
{ Kamus }
ch: Char
{ Algoritma }
Output('Press ''q'' to exit...')
ch <- ReadKey
While ch != 'q' Do
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<android.support.v7.widget.RecyclerView | |
android:id="@+id/rv_arraylist" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" /> |
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="vertical"> | |
<android.support.v7.widget.CardView | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" |
package io.github.mochadwi.practicerecyclerview; | |
import android.content.Intent; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.view.View; | |
import android.widget.Button; | |
public class MainActivity extends AppCompatActivity { | |
Button arrayList; |
package io.github.mochadwi.practicerecyclerview; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.support.v7.widget.LinearLayoutManager; | |
import android.support.v7.widget.RecyclerView; | |
import java.util.ArrayList; | |
import io.github.mochadwi.practicerecyclerview.adapter.BukuAdapter; |
//Program untuk menentukan nilai akhir melalui matriks GRADE dan BOBOT | |
#include <iostream> | |
using namespace std; | |
//fungsi nilai akhir | |
//bobot [k] bagaimana ya?? | |
// Global variable | |
int soal, siswa; |
program daftar_nilai_siswa; | |
uses crt; // ini buat window | |
const | |
// constanta yg sama juga | |
type | |
// tipe data bentukan yg sama |
{ Judul }
while_loops
{ Kamus }
ch: Char
{ Algoritma }
Output('Press ''q'' to exit...')
ch <- ReadKey
While ch != 'q' Do
program while_loops; | |
var ch : char; | |
begin | |
writeln('Press ''q'' to exit...'); | |
ch := readkey; | |
while ch <> 'q' do begin | |
writeln('I told you press ''q'' to exit!!'); | |
ch := readkey; |
{ Judul }
repeat_until
{ Kamus }
response: Char
{ Algoritma }
Repeat
Output('Hey you! You at the keyboard! You are a j*rk!!!');
Output('Have you had enough (y/n)?');
program repeat_until; | |
var response : char; | |
begin | |
repeat | |
writeln('Hey you! You at the keyboard! You are a j*rk!!!'); | |
write('Have you had enough (y/n)?'); | |
read(response); | |
until (response == 'n' || response == 'N'); // control condition |