Modul 2.3
http://www.youtube.com/watch?v=kT_sk0Y2Sc4
Listing Program
//MODUL 2-3
// Konstanta
// Nama : Wulan Kandiani Kusumah Wardani
// NRP : 49013036
#include <iostream>
#include <stdlib.h>
using namespace std;
const int MAX = 5;
int main()
{
int A[MAX];
for (int C = 0; C < MAX ; C++)
{
A[C] = C *10;
}
for (int c = 0; c <MAX; c++)
{
std::cout << A [c] << endl;
}
system("pause");
return 0;
}
http://www.youtube.com/watch?v=kT_sk0Y2Sc4
Listing Program
//MODUL 2-3
// Konstanta
// Nama : Wulan Kandiani Kusumah Wardani
// NRP : 49013036
#include <iostream>
#include <stdlib.h>
using namespace std;
const int MAX = 5;
int main()
{
int A[MAX];
for (int C = 0; C < MAX ; C++)
{
A[C] = C *10;
}
for (int c = 0; c <MAX; c++)
{
std::cout << A [c] << endl;
}
system("pause");
return 0;
}
Tidak ada komentar:
Posting Komentar