Advertisement
Guest User

Untitled

a guest
Nov 5th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import java.util.*;
  2.  
  3. class Main{
  4.  
  5. public static void main (String args[]) {
  6. int m;
  7. int g;
  8. m = 1024;
  9. Scanner tastatura = new Scanner(System.in);
  10. System.out.println("Koliko megabajta? (1024MB = 1GB)");
  11. g = tastatura.nextInt();
  12. g=g/m;
  13. System.out.print( g + "gigabajt/a");
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement