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 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`); | |
(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
#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
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
void main() { | |
// tasks | |
// task a | |
// prints even nos between 1 - 100000 | |
// exec. time: to be calculated | |
// arrival time: roughly 5s | |
// task b | |
// prints even nos between 1 - 1000000 |
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() { | |
// function call | |
fcfs([ | |
// then this, secondly | |
Task( | |
't1', 10, | |
), | |
// by rule, this should exec. first | |
Task( | |
't2', 0, |
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() { | |
// function call | |
fcfs([ | |
// then this, secondly | |
Task( | |
't1', 10, 20, | |
), | |
// by rule, this should exec. first | |
Task( | |
't2', 0, 25, |