Latihan CPP 3.6

Run Settings
LanguageC++
Language Version
Run Command
#include <iostream> using namespace std; #include <stdio.h> #define PHI 3.14 int main() { //nama : la ode ian //nim : 342021002 //prodi : Teknik informatika float jari; float volume; printf("PROGRAM MENGHITUNG VOLUME BOLA\n\n"); printf("Input jari-jari bola (cm) : "); scanf("%f", &jari); //hitung volume volume = 4/3 * PHI * jari * jari * jari; printf("\nVolume bola dg jari-jari %.2f cm adalah %.3f cm3.", jari, volume); return 0; }
Editor Settings
Theme
Key bindings
Full width
Lines