#include <iostream.h>
#include <conio.h>
void perulangan(int x)
{
for (int a=1;a<=x;a++)
{
cout <<"Perulangan" <<a;
cout<<endl;
}
}
void main()
{
int ulang;
cout<<"Masukkan jml perulangan= ";
cin>>ulang;
perulangan(ulang);
getch();
}
0 comments:
Post a Comment