PENGANTAR CODING
OLEH:
NIM : 20022110
DOSEN PENGAMPU:
2021
PROGRAM UNTUK MENGETAHUI LUAS
SOURCE CODE
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
float luas;
int t,a;
luas=0.5*a*t;
cout<<"Luas Segitiga = "<<luas<<endl;
getch();
}
SCREENSHOOT PROGRAM
SCREENSHOOT OUTPUT
2. Lingkaran
Input : Jari-jari
Output : Luas
SOURCE CODE
#include <iostream>
#include <conio.h>
int main()
int r;
cin>>r;
luas=phi*r*r;
getch();
}
SCREENSHOOT PROGRAM
SCREENSHOOT OUTPUT