Tugas7.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; void judul() { cout<<"--------------------------------------------\n"; cout<<" No A B A*A B*B\n"; cout<<"--------------------------------------------\n"; } int main() { judul(); int i; int a = 2; int b = 4; float No[10]; No[0] = 1;No[1] = 2; No[2] = 3;No[3] = 4; No[4] = 5;No[5] = 6; No[6] = 7;No[7] = 8; No[8] = 9;No[9] = 10; for(i=1;i<=10;i++) { printf("%3d%4d%4d%5d%5d\n",i,a,b,a*a,b*b); a=a+2; b=b+3; } cout<<"--------------------------------------------\n"; cout<<"Nama = Nur Izzati Istiqlal"<<endl; cout<<"Email = nurizzatisql@gmail.com"<<endl; cout<<"NIM = 1620230004"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines