![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言
有请咸鱼发言
这个作者很懒,什么都没留下…
展开
-
拆分实数
#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 阅读 · 0 评论 -
递归阶乘
其中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 阅读 · 0 评论