Tugas7.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> //Nama : Fara Novri Hasbel Wijaya //NIM : 3420230017 using namespace std; int no, a, b, a_kuadrat, b_kuadrat; void garis() { puts("-------------------------------------"); } void ttd() { cout << "Nama : Fara Novri Hasbel Wijaya" << endl; cout << "Email : faranovri@gmail.com"; } int main() { garis(); cout << "No A B A*A B*B " << endl; garis(); for (no = 1; no <= 10; no++) { a = no * 2; b = no * 3 + 1; a_kuadrat = a * a; b_kuadrat = b * b; cout << no << "\t" << a << "\t" << b << "\t" << a_kuadrat << "\t" << b_kuadrat << endl; } garis(); ttd(); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines