This file contains hidden or 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
void main() { | |
// todo | |
print("Hello World!"); | |
HighEngine firstWord = HighEngine(word: 'engine'); | |
print(firstWord.word); | |
print(firstWord.checkWord()); | |
// sandbox |
This file contains hidden or 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> | |
int main() { | |
void print(int n); | |
int i; | |
for (i = 1; i <= 100; i++) { | |
if (i % 15 == 0) { | |
putchar('F'); |
This file contains hidden or 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
let input = require('sync-input'); | |
console.log("Welcome to Currency Converter!"); | |
console.log(`1 USD equals 1 USD | |
1 USD equals 113.5 JPY | |
1 USD equals 0.89 EUR | |
1 USD equals 74.36 RUB | |
1 USD equals 0.75 GBP`); | |
(function myCurrConv() { |
This file contains hidden or 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
let currencies = [ | |
{ | |
name: "JPY", | |
val: 113.5, | |
}, | |
{ | |
name: "EUR", | |
val: 0.89, | |
}, | |
{ |
This file contains hidden or 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
let input = require('sync-input'); | |
console.log("Welcome to Currency Converter!"); | |
console.log(`1 USD equals 1 USD | |
1 USD equals 113.5 JPY | |
1 USD equals 0.89 EUR | |
1 USD equals 74.36 RUB | |
1 USD equals 0.75 GBP`); | |
console.log("What do you want to convert?"); |
This file contains hidden or 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
let fromCurrency = "USD"; | |
let toCurrency = "EUR"; | |
let amount = 89; | |
let result = ""; | |
if(fromCurrency == "USD") { | |
// for USD | |
let usdRates = { | |
usd: 1, | |
jpy: 113.5, |
This file contains hidden or 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
let input = require('sync-input'); | |
console.log("Welcome to Currency Converter!"); | |
console.log(`1 USD equals 1 USD | |
1 USD equals 113.5 JPY | |
1 USD equals 0.89 EUR | |
1 USD equals 74.36 RUB | |
1 USD equals 0.75 GBP`); | |
console.log("What do you want to convert?"); |
This file contains hidden or 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
let colors = ["red", "green", "blue", "yellow"]; | |
let favColor = "pink"; | |
(function check() { | |
let output = 0; | |
for(color in colors) { | |
// console.log(colors[color]); | |
if(colors[color] == favColor) { | |
output = "I found your favorite color, color " + colors[color]; |
This file contains hidden or 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
let input = require('sync-input'); | |
console.log("Welcome to Currency Converter!"); | |
console.log(`1 USD equals 1 USD | |
1 USD equals 113.5 JPY | |
1 USD equals 0.89 EUR | |
1 USD equals 74.36 RUB | |
1 USD equals 0.75 GBP`); | |
console.log("I can convert USD to these currencies: JPY, EUR, RUB, USD, GBP"); | |
console.log("Type the currency you wish to convert: USD"); |
This file contains hidden or 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 the readline module | |
let rl = require('readline').createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}); | |
console.log("Welcome to Currency Converter!"); | |
console.log(`1 USD equals 1 USD | |
1 USD equals 113.5 JPY | |
1 USD equals 0.89 EUR |