Advertisement
hamaXD

Lab 2 : 1 main

Feb 7th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Main{
  4.     public static void main(String[] args){
  5.         int num;
  6.         Scanner in = new Scanner(System.in);
  7.         num = in.nextInt();
  8.         System.out.println(num);
  9.  
  10.         Factorial fac = new Factorial();
  11.         fac.setNum(num);
  12.         fac.calcFac();
  13.    
  14.  
  15.  
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement