AlgoritmaTugas7.1

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; void garis() { cout<<"---------------------------------\n"; } void nama() { puts("Nama : Irsyad Purbha"); puts("Email: irsyadpurbha.fst@uia.ac.id"); } int main() { int i; int a = 2; int b = 4; garis(); cout<<" No A B A*A B*B\n"; garis(); 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; } garis(); nama(); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines