Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Beispiel{
- public static void main(String[] args) {
- public static int fakulIter(int a){
- int b = 1;
- for (int c = 1;c <= a;c++) {
- b *= c;
- }
- return b;
- }
- public static int fakulRek(int a) {
- if (a == 0) return 1;
- return a * fakulRek(a - 1);
- }
- }
- }
Add Comment
Please, Sign In to add comment