{{ message }}

Instantly share code, notes, and snippets.

🎯
Focusing

🎯
Focusing
Created Sep 17, 2020
Contoh program utama dan prosedur untuk menukar 2 buah nilai
View proc.c
 #include void plus1 (int* a) { int temp; *a=*a+1; } void plusd (int* a, int d) {
Created Sep 17, 2020
Fungsi yang menjumlahkan a+b
 #include int add (int a, int b) { return(a+b); } int inkremen (int a) { return (a+1); } int main() {
Created Sep 17, 2020
Maximum
View maxsort.c
 #include int main() { int i; int Tab[10]= {1, 50, 6, 200, 3, 100, 30, 8, 99, 100 }; int max; int k, temp;
Created Sep 17, 2020
Maximum-Minimum
View max.c
 #include int main() { int i; int Tab[10]={ 1, 50, 6, 200, 3, 300, 100, 30, 8, 99 }; int max; max = Tab[0]; for (i=1;i<10; i++){
Created Sep 17, 2020
Baca Tulis Isi Tabel
View tabel1.c
 #include int main() { int Tab [5]; int i; for (i=0; i<5; i++);{ scanf ("%d", &Tab[i]);
Created Sep 16, 2020
Instruksi If else if
View IF_ELSE_IF.c
 #include int main() { int a; printf ("Contoh IF tiga kasus \n"); printf ("Ketikkan suatu nilai integer : "); scanf ("%d", &a);
Created Sep 16, 2020
Operator Boolean
View Boolean
 #include int main() { int TRUE = 1; int FALSE = 0; printf ("Ini nilai true and true : %d \n", TRUE && TRUE ); printf ("Ini nilai true or false : %d \n", TRUE || FALSE ); printf ("Ini nilai false and true : %d \n", FALSE && TRUE );
Created Sep 16, 2020
OPERASI ARITMETIKA
View aritmetika
 #include int main() { int x=5; int y=8; printf ("Ini nilai x + y :%d \n", x+y); printf ("Ini nilai x - y : %d \n", x-y); printf ("Ini nilai x * y : %d \n", x*y);
You can’t perform that action at this time.