文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-42 整除光棍

作者:yunjinqi   类别:    日期:2023-05-29 15:07:45    阅读:28 次   消耗积分:0 分     编辑文章#include <stdio.h>int main(){    int x,s=1,n=1;    scanf("%....

c语言编程练习题:7-42 整除光棍
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-40 到底是不是太胖了

#include <stdio.h>#include <math.h>int main() {    int n;    int res;    res = scanf("%d", &n);    int array[n][2];    for (int i = 0....

c语言编程练习题:7-40 到底是不是太胖了
文章 2023-12-27 来自:开发者社区

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

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

c语言编程练习题:7-39 龟兔赛跑
文章 2023-12-27 来自:开发者社区

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

#include &lt;stdio.h&gt;int main(){ &nbsp; &nbsp;int y,f,n; &nbsp; &nbsp;//int v1; &nbsp; &nbsp;//int v2; &nbsp; &nbsp;int t=0; &nbsp; &nbsp;int v; &nbsp; &nbsp;if (scanf("%d",&amp;n)!=0){ &nbsp; &amp...

c语言编程练习题:7-38 支票面额
文章 2023-12-27 来自:开发者社区

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

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

c语言编程练习题:7-37 输出整数各位数字
文章 2023-12-27 来自:开发者社区

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

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

c语言编程练习题:7-36 韩信点兵
文章 2023-12-27 来自:开发者社区

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; &nbsp; &nbsp; &nbsp;for (i=1;i&lt;N;i++){ &nbsp; &am...

c语言编程练习题:7-35 猴子吃桃问题
文章 2023-12-27 来自:开发者社区

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

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

c语言编程练习题:7-34 求分数序列前N项和
文章 2023-12-27 来自:开发者社区

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

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

c语言编程练习题:7-33 统计素数并求和
文章 2023-12-27 来自:开发者社区

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

#include &lt;stdio.h&gt;int main(){ &nbsp; &nbsp;int N; &nbsp; &nbsp;double my_sum=0; &nbsp; &nbsp;int i; &nbsp; &nbsp;double f=1.0; &nbsp; &nbsp;if (scanf("%d",&amp;N)!=0){ &nbsp; &nbsp; &nbsp; &amp;...

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

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

开发与运维

集结各类场景实战经验,助你开发运维畅行无忧

+关注
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等