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

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

#include <stdio.h>int main(){    int N;    double sum=0.0;    int i;    int s=1;    if (scanf("%d",&N)!=EOF){        fo....

c语言编程练习题:7-52 求简单交错序列前N项和
文章 2023-12-27 来自:开发者社区

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

#include <stdio.h>int main(){    int N;    double sum=0.0;    int i;    if (scanf("%d",&N)!=EOF){        for (i=0;i<N;i++){ &am...

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

c语言编程练习题:7-50 输出华氏-摄氏温度转换表

#include <stdio.h>int main() {    int lower, upper;    if (scanf("%d %d", &lower, &upper) != 2 || lower > upper || upper > 100) {        pr....

c语言编程练习题:7-50 输出华氏-摄氏温度转换表
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-49 Have Fun with Numbers

#include <stdio.h>#include <stdlib.h>#include <string.h>int is_same_digits(int *arr1, int *arr2) {    int arr_d_1[10]={0};    int arr_d_2[10]={0};    i....

c语言编程练习题:7-49 Have Fun with Numbers
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-48 求组合数

#include <stdio.h>double fact(int n){    double r=1.0;    int i;    for (i=1;i<=n;i++){        r*=i;    }    return r;}d....

c语言编程练习题:7-48 求组合数
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-47 二进制的前导的零

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

c语言编程练习题:7-47 二进制的前导的零
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-46 爬动的蠕虫

#include &lt;stdio.h&gt;int main(){ &nbsp; &nbsp;int N,U,D; &nbsp; &nbsp;int len=0; &nbsp; &nbsp;int direction=1; &nbsp; &nbsp;int count=0; &nbsp; &nbsp;if (scanf("%d",&amp;N)!=EOF &amp;&amp; scanf("....

c语言编程练习题:7-46 爬动的蠕虫
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-45 找完数

#include <stdio.h>int is_perfect_num(int num){    int sum=0;    int i;    for (i=1;i<num;i++){        if (num%i==0){sum+=i;}    } ....

c语言编程练习题:7-45 找完数
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-44 黑洞数

#include &lt;stdio.h&gt;int main(){ &nbsp; &nbsp;int num=0,a,b,c,max_num,min_num,i,j,res; &nbsp; &nbsp;int num_array[6]; &nbsp; &nbsp;res = scanf("%d",&amp;num); &nbsp; &nbsp;if (res!=EOF){ &nbsp; &am...

c语言编程练习题:7-44 黑洞数
文章 2023-12-27 来自:开发者社区

c语言编程练习题:7-43 Shuffling Machine

Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with gamble....

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

开发与运维

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

+关注
AI助理

你好,我是AI助理

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