c语言编程练习题:7-39 龟兔赛跑

c语言编程练习题:7-39 龟兔赛跑

#include <stdio.h>int main(){    int T;    int distance_rabbit=0,distance_turtle=0;    //int speed_rabbit = 9,spee...

c语言编程练习题:7-38 支票面额

c语言编程练习题:7-38 支票面额

#include <stdio.h>int main(){    int y,f,n;    //int v1;    //int v2;    int t=0;    int v; &n...

你的第一门C语言课

44 课时 |
15429 人已学 |
免费

C语言学习教程

128 课时 |
19187 人已学 |
免费
开发者课程背景图
c语言编程练习题:7-37 输出整数各位数字

c语言编程练习题:7-37 输出整数各位数字

#include <stdio.h>int main(){    int num;    int m=1;    int i;    int v;    int count=1; &nbs...

c语言编程练习题:7-36 韩信点兵

c语言编程练习题:7-36 韩信点兵

#include <stdio.h>int main(){    int num=0;    int i;    for (i=1;i>0;i++){        num++; &...

c语言编程练习题:7-35 猴子吃桃问题

c语言编程练习题:7-35 猴子吃桃问题

#include &lt;stdio.h&gt;int main(){ &nbsp; &nbsp;int N; &nbsp; &nbsp;int num=1; &nbsp; &nbsp;int i; &nbsp; &nbsp;if (scanf("%d",&amp;N)!=0){ &nbsp; &n...

c语言编程练习题:7-34 求分数序列前N项和

c语言编程练习题:7-34 求分数序列前N项和

#include <stdio.h>int main(){    int N;    double f=2.0;    double m=1.0;    int i;    double ...

c语言编程练习题:7-33 统计素数并求和

c语言编程练习题:7-33 统计素数并求和

#include <stdio.h>int is_prime(int n){    int i;    int r=1;    if (n==1){r=0;}    if (n>1){   &...

c语言编程练习题:7-32 求交错序列前N项和

c语言编程练习题:7-32 求交错序列前N项和

#include <stdio.h>int main(){    int N;    double my_sum=0;    int i;    double f=1.0;    if (...

c语言编程练习题:7-31 掉入陷阱的数字

c语言编程练习题:7-31 掉入陷阱的数字

#include <stdio.h>int sum_number(int i){    int my_sum=0;    int num=i;    while (num>9){       ...

c语言编程练习题:7-30 念数字

c语言编程练习题:7-30 念数字

#include &lt;stdio.h&gt;#include &lt;math.h&gt;int main(){ &nbsp; &nbsp;char my_string[][5] = {"ling","yi","er","san","si","wu","liu","qi","ba","jiu",...

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。