- 博客(2)
- 收藏
- 关注
原创 递归阶乘
其中N是用户传入的参数,其值不超过12。如果N是非负整数,则该函数必须返回N的阶乘,否则返回0。#include "stdafx.h"int Factorial(const int N);int main(){ int N, NF; scanf("%d", &N); NF = Factorial(N); if (NF) printf("%d! = %d\n", N, ...
2018-06-02 22:09:56
111
原创 拆分实数
#include "stdafx.h"int main(void){ double x, y, z, *intpart = &y, *fracpart = &z; void splitfloat(double x, double *intpart, double *fracpart); printf(" "); scanf_s("%lf", &x); splitfloat(...
2018-06-02 22:05:30
952
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人