Browse Source

Apparently, I don't know what a factorial is.

master
Wágner András 1 year ago
parent
commit
9e4ad8325a
  1. 9
      Program.cs

9
Program.cs

@ -28,7 +28,7 @@ class Program {
n=0;
}else if(commands[i] == '!'){
for(int j=n-1; j>0; j--){
n+=j;
n = n*j;
}
}
}
@ -49,6 +49,13 @@ class Program {
}
Console.WriteLine(secondWords);
for(int i=input.Length-1; i>-1; --i){
if(input[i] == 't'){
Console.WriteLine(i);
break;
}
}
Console.ReadLine();
}
}

Loading…
Cancel
Save