Tugas 7.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> #include <iomanip> using namespace std; void ttd() { } int main() { int A = 2, B = 4; cout<<"---------------------------------------------"<<endl; cout<<setw(2)<<"No"<<setw(4)<<"A"<<setw(4)<<"B"<<setw(6)<<"A*A"<<setw(6)<<"B*B"<<"\n"; cout<<"---------------------------------------------"<<endl; for(int i=1;i<=10;i++) { int A = i* 2; cout<<setw(2)<<i<<setw(4)<<A<<setw(4)<<B<<setw(6)<<A*A<<setw(6)<<B*B<<"\n"; B+=3; } cout<<"-----------------------------------------"<<endl; ttd(); cout<<"Nama : Irfa Nurul Aulia Safitri"<<endl; cout<<"Email: irfanurulaulias@gmail.com"<<endl; cout<<"Nim : 1620230021"<<endl; return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines