Skip to content

Instantly share code, notes, and snippets.

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

Bryan Primus bryanprimus

🏠
Working from home
View GitHub Profile
const filterFunction = (list, options) => {
switch (options.option) {
case 'age':
return filerByAgeRange(list, options.payload);
case 'name':
return filerByNames(list, options.payload);
case 'location':
return filterByLocation(list, options.payload);
}
};
#include <iostream>
using namespace std;
int main() {
char pilihan, ulangi;
int i,n=1;
// diketahui
double kb = 0.52, kf = 1.86, nTerlarut = 0.1;
@bryanprimus
bryanprimus / EnergiKinetik.cpp
Last active May 11, 2020 16:16
Mencari Energi kinetik menggunakan rumus ketetepan dan data frekuensi
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n, counter;
double penampungNilaiF[n], ek[n];
double f0 = 5000;