#include <iostream>
using namespace std;
int main() {
int y[100];
int i, k;
cout<<" NAMA : MUHAMAD HUSNI RAMADHAN "<<endl;
cout<<" NIM : 191011400011 "<<endl;
cout<<" KELAS : 02 TPLE 002 REGULER C "<<endl;
cout<<" MATA KULIAH : Algoritma & Pemrograman 2 "<<endl<<endl;
for(i=0;i<10;i++){
k=i+1;
y[i]=k*k;
cout<<"pangkat dari "<<" "<< k <<"adalah"<<" "<<y[i]<<endl;
}
return 0;
}
//https://zoneblog123.blogspot.com/2018/04/5-contoh-program-array-beserta.html
Tidak ada komentar:
Posting Komentar