Factorial using Addition

后端 未结 4 812
眼角桃花
眼角桃花 2021-01-28 14:19

I am attempting to create a C code that finds the factorial of a integer so that I may convert my code to assembly language. My code seems to \'multiply\' the second integer twi

4条回答
  •  花落未央
    2021-01-28 14:28

    Check this...

    https://code.sololearn.com/cKWo4Cc0GKd1

    I've created it using JAVA

    class Main {
    public static void main(String[] args) {
    String str="123456";
    int sum=1,t=1;
    for(int i=2;i<=str.length();i++){      
       for(int j=0;j

提交回复
热议问题