View TextRepeater.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class TextRepeater { | |
private String bunga; | |
private int jumlah; | |
private boolean barisbaru; | |
private String tmp; | |
public static void main(String args[]) { | |
welcome(); |
View gabut.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Useless Scripts, for fun | |
# Gabut? | |
clear | |
echo Haloo, aku Mocci. Terlahir dari bash | |
sleep 1 | |
# Hanya untuk warga baik baik | |
echo Aku dibuat hanya dalam 10 menit |
View wahana.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<time.h> | |
#include<stdlib.h> | |
void generateTicket() { | |
int i; | |
char random[26]="abcdefghijklmnopqrstuvwxyz"; | |
char tiket[8]; | |
for (i = 0; i < 8; ++i) { | |
tiket[i] = random[rand() % (sizeof(random) - 1)]; |
View multidimension-array.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//don't run | |
#include<stdio.h> | |
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int dat[2][5] = {{1, 2, 3, 4, 5}, | |
{7, 9, 0, 2, 4}}; |