akbarbasya26

balok

Mar 8th, 2020
123
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. main(){
  5. int nilai, panjang, lebar, tinggi;
  6. printf("panjang: "); scanf ("%d", &panjang);
  7. printf("lebar: "); scanf ("%d", &lebar);
  8. printf("tinggi: "); scanf ("%d", &tinggi);
  9. nilai = (panjang * lebar * tinggi);
  10. printf("Nilai volume balok : %d", nilai);
  11. getch();
  12. }
RAW Paste Data