Skip to content

Instantly share code, notes, and snippets.

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

Andri Nur Hidayatulloh andrinur13

🏠
Working from home
View GitHub Profile
@andrinur13
andrinur13 / main.cpp
Created December 18, 2018 09:59
ddp-tugas
#include <iostream>
#include <cstdlib>
using namespace std;
struct makanan {
/*
int nasi = 4000;
int ayam = 6000;
int rendang = 7000;
int perkedel = 3000;
@andrinur13
andrinur13 / soal-postest-7.cpp
Last active November 9, 2018 04:18
soal postest 7
#include <iostream>
#include <cstdlib>
using namespace std;
int main(int argc, char const *argv[])
{
/*
Andri Nur Hidayatulloh
@andrinur13
andrinur13 / soal1.cpp
Created October 21, 2018 04:34
soal 1
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int angka1;
int angka2;
int tambah;
int kurang;
int kali;
@andrinur13
andrinur13 / grade.cpp
Created October 20, 2018 12:35
Mencari Grade dengan If Else
#include <iostream>
using namespace std;
main() {
int nilai;
string grade;
cout << "Masukkan nilai Anda : ";
cin >> nilai;
@andrinur13
andrinur13 / kerucut.cpp
Created October 15, 2018 13:33
kerucut
#include <iostream>
#include <cmath>
using namespace std;
main() {
float phi = 22/(float)7;
int tinggi, jari, volint;
float volf, luasp, garispelukis;
cout << "Masukkan tinggi kerucut : ";
@andrinur13
andrinur13 / 1-return.cpp
Created September 13, 2018 06:50
1-return
return 0;
@andrinur13
andrinur13 / 1-endline.cpp
Created September 13, 2018 06:50
1-endline
cout << "Hello World!" << endl;
@andrinur13
andrinur13 / 1-cout.cpp
Created September 13, 2018 06:47
1-cout
cout << "Hello World!\n";
@andrinur13
andrinur13 / 1-lengkap.cpp
Created September 13, 2018 06:46
1-lengkap
std::cout << "Hello World!\n";
@andrinur13
andrinur13 / 1-kedua.cpp
Created September 13, 2018 06:43
1-kedua
using namespace std;