Solution of 10071 - Back To High School Physics in JAVA programming


///Md. Alamgir Hossain
///Dept. of Computer Science & Engineering
///Jessore University of Science & Technology
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        int v, t, r;
        Scanner sc = new Scanner(System.in);
          while(sc.hasNext()){
             v = sc.nextInt();
             t = sc.nextInt();
             r = 2 * v * t;
             System.out.println(r);
          }
    }

}

No comments:

Post a Comment