What is the outputdef factorial(n):if n == 0:return 1else:return n * factorial(n-1)result = factorial(10)print("The factorial of 10 is:", result)
#include iostreamusing namespace std;void main() {int n=5;for (int i=0; in; ++i) {for (int j=0; jn; ++i) {cout"*\n";}coutendl;}}
class sookshmas {public static void main(String[] args) {for(int i = 0; 1; i++) {System.out.println("Hello");break;}}}
#include iostreamusing namespace std;void square (int *x, int *y){*x = (*x) * --(*y);}int main ( ){int number = 30;square(&number, &number);cout number;return 0;}