Professional Documents
Culture Documents
Tugas Praktikum 1 & 2
Tugas Praktikum 1 & 2
#include <iostream>
using namespace std;
int main()
{
string nama, nim, alamat;
cout << "Thoriq Jamil Lutfiansyah" <<endl;
cout << "312210502" <<endl;
cout << "=====================" <<endl;
return 0;
}
Output :
• Post Test praktikum 2
#include <iostream>
using namespace std;
main ()
{
float r, luas, keliling;
const float phi = 3.14;
cout <<"====================================="<<endl;
cout <<"| MENCARI LUAS & KELILING LINGKARAN |"<<endl;
cout <<"====================================="<<endl;
cout <<endl;
luas = phi * r * r;
keliling = 2 * phi * r;
return 0;
}
Output :