Skip to content

Instantly share code, notes, and snippets.

View dwikipedia's full-sized avatar
🏠
Working from home

Dwiki Ikhwan dwikipedia

🏠
Working from home
View GitHub Profile
for(x = 1; x <= 100; x++){
if(x % 15 == 0){
console.log('FizzBuzz');
}
else if(x % 3 == 0){
console.log('Fizz');
}
else if(x % 5 == 0){
console.log('Buzz');
} else {
@dwikipedia
dwikipedia / CompareTheTriplets
Created July 8, 2017 06:29
Comparing and giving score from a0,b0,a1,b1, and a2, b2
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
class Solution {
static void Main(String[] args) {
string[] tokens_a0 = Console.ReadLine().Split(' ');
int a0 = Convert.ToInt32(tokens_a0[0]);
@dwikipedia
dwikipedia / Triangles
Created July 8, 2017 09:20
Kinds of Triangles using for
/*
#
##
###
####
#####
*/
for (int x = 1; x <= 5; x++)
{