6.4.. Izračunati zapreminu kocke.
Listing programa :
// 06411068 Izračunati zapreminu kocke.
package zadatak;
import java.util.Scanner;
public class p06411068 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Zapremina kocke");
System.out.println("Unesite vrijednost stranice kocke");
int a = input.nextInt();
System.out.println("Zapremina kocke je "+ a*a*a);
}
}
Ispis na ekranu:
![](../../../pascal/pascal_prir/064/064_izvedi/06411068.gif)
Index
|