?? showfact.c
字號(hào):
#include <stdio.h>
int factorial(int value)
{
printf("In factorial with the value %d\n", value);
if (value == 1)
{
printf("Returning the value 1\n");
return(1);
}
else
{
printf("Returning %d * factorial(%d)\n",
value, value-1);
return(value * factorial(value-1));
}
}
void main(void)
{
printf("The factorial of 4 is %d\n", factorial(4));
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -