Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Studying

Khuirul Huda Khuirul-Huda

:octocat:
Studying
View GitHub Profile
View multidimension-array.cpp
//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}};
View wahana.c
#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)];
@Khuirul-Huda
Khuirul-Huda / gabut.sh
Last active November 16, 2021 14:27
Dibuat karena gabut, akan di-update saat gabut, boleh digunakan oleh siapapun jika sedang gabut
View gabut.sh
#!/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
@Khuirul-Huda
Khuirul-Huda / TextRepeater.java
Created October 11, 2021 07:26
Simple Text Repeater
View TextRepeater.java
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();