当前位置:网站首页>C language: implementation of daffodil number function
C language: implementation of daffodil number function
2022-07-04 16:07:00 【Procedural ape ink】
Code :
#include <stdio.h>
int cube(int x);
int main()
{
int a , b , c;
for(a = 1 ; a < 10 ; a++){
for(b = 0 ; b < 10 ; b++){
for(c = 0 ; c < 10 ; c++){
if(cube(a)+cube(b)+cube(c) == a*100+b*10+c){
printf("%d \n",a*100+b*10+c);
}
}
}
}
return 0;
}
int cube(int x)
{
return x*x*x;
}
边栏推荐
- Lombok使用引发的血案
- .Net 应用考虑x64生成
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- c# 实现定义一套中间SQL可以跨库执行的SQL语句
- One question per day 540 A single element in an ordered array
- [book club issue 13] coding format of video files
- unity update 协程_Unity 协程的原理
- Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
- Shell programming basics
- [hcie TAC] question 5 - 1
猜你喜欢

Summer Review, we must avoid stepping on these holes!

华为云数据库DDS产品深度赋能

How did the beyond concert 31 years ago get super clean and repaired?

Penetration test --- database security: detailed explanation of SQL injection into database principle

Working group and domain analysis of Intranet

这几年爆火的智能物联网(AIoT),到底前景如何?
![[hcie TAC] question 5 - 1](/img/e0/1b546de7628695ebed422ae57942e4.jpg)
[hcie TAC] question 5 - 1

案例分享|金融业数据运营运维一体化建设

這幾年爆火的智能物聯網(AIoT),到底前景如何?

Hidden communication tunnel technology: intranet penetration tool NPS
随机推荐
[flask] ORM one to many relationship
CentOS 6.3 下 PHP编译安装JSON模块报错解决
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
2022年九大CIO趨勢和優先事項
Usage of database functions "recommended collection"
Dry goods | fMRI standard reporting guidelines are fresh, come and increase your knowledge
%F format character
這幾年爆火的智能物聯網(AIoT),到底前景如何?
Huawei cloud database DDS products are deeply enabled
这几年爆火的智能物联网(AIoT),到底前景如何?
Unity脚本介绍 Day01
[native JS] optimized text rotation effect
web聊天室实现
Find numbers
After the eruption of Tonga volcano, we analyzed the global volcanic distribution and found that the area with the most volcanoes is here!
Solve the error of JSON module in PHP compilation and installation under CentOS 6.3
基于MAX31865的温度控制系统
.Net 应用考虑x64生成
Detailed explanation of MySQL composite index (multi column index) use and optimization cases
Intranet penetrating FRP: hidden communication tunnel technology