Monday, 7 April 2014

praktikum SA ke 4 (algoritma greedy)

#include <cstdlib>
#include <iostream>

using namespace std;
void PenjadwalanPelanggan(int n)
{
int i;
for(i=1;i<=n;i++)
{
cout<<" pelanggan "<<i<<" dilayani "<<endl;
}
}
int main(int argc, char *argv[])
{
int m;
cout<<"masukkan jumlah pelanggan:";
cin>>m;
PenjadwalanPelanggan(m);

system("PAUSE");
return EXIT_SUCCESS;
}

No comments:

Post a Comment

Konversi Suhu

#include <iostream> #include <conio.h> //#include <cstdlib> //#include <iostream.h> void main( float Celcius, Kelvi...