Count in factors: Difference between revisions
Content added Content deleted
Line 946:
function : Main(args : String[]) ~ Nil {
for(i := 1; i <= 10; i += 1;){
}
function : CountInFactors(n : Int) ~ String {
if(n = 1) {
return "1";
};
return sb;
};
return sb;
};
n := CheckFactor(i, n, sb);
if(n = 1) {
Line 979:
};
};
}
function : CheckFactor(mult : Int, n : Int, sb : String) ~ Int {
while(n % mult = 0 ) {
sb->Append(" x ");
};
}
}
|