FactorialTest2
来源:互联网 发布:python sap 编辑:程序博客网 时间:2024/04/30 15:11
import javax.swing.*;public class FactorialTest2 {public static void main(String args[]){int n;String s=(String)JOptionPane.showInputDialog(null,"请输入整数n","1到n的阶乘", JOptionPane.PLAIN_MESSAGE,null,null,null); n=Integer.parseInt(s);{long i,j,k;for(i=1,j=1,k=1;j<=n;j++){k*=j;}System.out.println(n+"!="+k);}}}
0 0
- FactorialTest2
- 基于hibernateSearch全文索引+条件查询
- 读paper总结(文献阅读经验分析总结)
- 微软YY公开课[《微软中国云计算Azure平台体验与新企业架构设计》 周六晚9点
- Visual Studio中使用正则表达式进行代码规范的检查
- 第一次接触脱壳
- FactorialTest2
- Hibernate Cannot convert value '0000-00-00 00:00:00' from column 5 to TIMESTAMP
- android Toast大全(五种情形)建立属于你自己的Toast
- 第七周作业3——最长递增子序列
- java面试题分析
- MAC 下的Java JDK
- c语言 访问数组首地址的几种方式
- Choose a destination with a supported architecture in order to run on this device.
- 详解 Qt Quick 开始使用QML编程