Navigation Menu

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
#include <iostream>
using namespace std;
main() {
int angka[3][4] = {
{1, 2, 3, 4},
{5, 6, 7, 8},
{2, 3, 5, 4}
};
#include <iostream>
#include <cstring>
#include <cstdlib>
using namespace std;
string namapembeli, kodee;
int bayar, kembalian;
// list Barang
string nama[] = {
@andrinur13
andrinur13 / postest.cpp
Created March 18, 2019 04:05
postest alpro
#include <iostream>
using namespace std;
class Tambah {
private:
float a, b, x, y, hasil;
public:
friend ostream & operator << (ostream &out, const Tambah &t);
friend istream & operator >> (istream &in, Tambah &t);
@andrinur13
andrinur13 / miftah.cpp
Created February 5, 2019 15:27
miftah
#include <iostream>
using namespace std;
struct n {
int math;
int ipa;
int ips;
};
struct siswa {
@andrinur13
andrinur13 / miftah.cpp
Created February 5, 2019 15:27
miftah
#include <iostream>
using namespace std;
struct n {
int math;
int ipa;
int ips;
};
struct siswa {
@andrinur13
andrinur13 / miftah.cpp
Created February 5, 2019 15:27
miftah
#include <iostream>
using namespace std;
struct n {
int math;
int ipa;
int ips;
};
struct siswa {
@andrinur13
andrinur13 / miftah.cpp
Created February 5, 2019 15:27
miftah
#include <iostream>
using namespace std;
struct n {
int math;
int ipa;
int ips;
};
struct siswa {
@andrinur13
andrinur13 / soal5.cpp
Last active January 31, 2019 12:59
soal uas no 5
#include <iostream>
using namespace std;
struct mahasiswa {
string nama;
string nim;
char nilai_ddp;
char nilai_kalkulus;
}MHS;
@andrinur13
andrinur13 / soal2.cpp
Created January 31, 2019 12:38
soal uas no 2
#include <iostream>
using namespace std;
main() {
int nilai[3][3] = {
{0, 2, 2},
{2, 0, 2},
{2, 2, 0}
};
@andrinur13
andrinur13 / soal1.cpp
Created January 31, 2019 12:35
soal uas no 1
#include <iostream>
using namespace std;
int ls(int x, int y) {
int hasil;
return hasil = x * y;
}
int kel(int P, int L) {
return 2*(P+L);