码迷,mamicode.com
首页 > 编程语言 > 详细

大数乘法java版

时间:2017-04-20 23:05:56      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:java   scanner   cin   port   大数乘法   []   static   stat   color   

 1 import java.util.*;
 2 import java.math.*;
 3 
 4 public class NumMul{
 5     public static void main(String args[]){
 6         Scanner cin = new Scanner(System.in);
 7         BigInteger a, b;
 8         while(cin.hasNext()){
 9             a = cin.nextBigInteger();
10             b = cin.nextBigInteger();
11             System.out.println(a.multiply(b));
12         }
13     }
14 }

 

大数乘法java版

标签:java   scanner   cin   port   大数乘法   []   static   stat   color   

原文地址:http://www.cnblogs.com/jxust-jiege666/p/6741034.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!