Advertisement
Guest User

Untitled

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