Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class DNA_sequence {
  4.     public static void main(String args[]){
  5.         Scanner console = new Scanner(System.in);
  6.         int w = Integer.parseInt(console.nextLine());
  7.         int h = Integer.parseInt(console.nextLine());
  8.         double sum = (w * h)/1000000.0;
  9.         System.out.printf("%dx%d => %.1fMP", w, h, sum);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement