This file contains 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 <iostream> | |
using namespace std; | |
main() { | |
int angka[3][4] = { | |
{1, 2, 3, 4}, | |
{5, 6, 7, 8}, | |
{2, 3, 5, 4} | |
}; |
This file contains 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 <iostream> | |
#include <cstring> | |
#include <cstdlib> | |
using namespace std; | |
string namapembeli, kodee; | |
int bayar, kembalian; | |
// list Barang | |
string nama[] = { |
This file contains 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 <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); |
This file contains 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 <iostream> | |
using namespace std; | |
struct n { | |
int math; | |
int ipa; | |
int ips; | |
}; | |
struct siswa { |
This file contains 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 <iostream> | |
using namespace std; | |
struct n { | |
int math; | |
int ipa; | |
int ips; | |
}; | |
struct siswa { |
This file contains 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 <iostream> | |
using namespace std; | |
struct n { | |
int math; | |
int ipa; | |
int ips; | |
}; | |
struct siswa { |
This file contains 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 <iostream> | |
using namespace std; | |
struct n { | |
int math; | |
int ipa; | |
int ips; | |
}; | |
struct siswa { |
This file contains 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 <iostream> | |
using namespace std; | |
struct mahasiswa { | |
string nama; | |
string nim; | |
char nilai_ddp; | |
char nilai_kalkulus; | |
}MHS; |
This file contains 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 <iostream> | |
using namespace std; | |
main() { | |
int nilai[3][3] = { | |
{0, 2, 2}, | |
{2, 0, 2}, | |
{2, 2, 0} | |
}; |
This file contains 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 <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); |
NewerOlder