PROGRAM NBilK
DEKLARASI
n, i,k,p: integer
ALGORITMA
read (n,k)
for (i=1; i<=n; i++)
write ( i*k)
endfor
KODING
#include<iostream>
using namespace std;
int main() {
int n, i,k,p;
cout<<"n="; cin>>n;
cout<<"k="; cin>>k;
for (int i=1; i<=n; i++)
cout<<"N bilangan K"<<i*k<<endl;
system("PAUSE");
}
KELUARAN
Download program disini https://drive.google.com/file/d/1Wmz9PVS-tmTwjlUoyNBMTjpLm2_uztdk/view?usp=sharing
No comments:
Post a Comment