当前位置:网站首页>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;
}
边栏推荐
- Stew in disorder
- What encryption algorithm is used for the master password of odoo database?
- Rearrange array
- AutoCAD - set color
- Unity animation day05
- Intranet penetrating FRP: hidden communication tunnel technology
- Redis shares four cache modes
- The 17 year growth route of Zhang Liang, an open source person, can only be adhered to if he loves it
- Actual combat | use composite material 3 in application
- 【读书会第十三期】视频文件的编码格式
猜你喜欢
Unity animation day05
AutoCAD - set color
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
[tutorial] yolov5_ DeepSort_ The whole process of pytoch target tracking and detection
Interface test - knowledge points and common interview questions
Blood cases caused by Lombok use
Neuf tendances et priorités du DPI en 2022
Unity脚本生命周期 Day02
Intranet penetrating FRP: hidden communication tunnel technology
Nine CIO trends and priorities in 2022
随机推荐
In today's highly integrated chips, most of them are CMOS devices
Logstash ~ detailed explanation of logstash configuration (logstash.yml)
MYSQL索引优化
mysql 联合主键_Mysql 创建联合主键[通俗易懂]
Working group and domain analysis of Intranet
Game theory
%S format character
Introduction of text mining tools [easy to understand]
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
MySQL~MySQL给已有的数据表添加自增ID
Enter the width!
A trap used by combinelatest and a debouncetime based solution
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
Unity脚本API—Transform 变换
What encryption algorithm is used for the master password of odoo database?
[book club issue 13] coding format of video files
Unity animation day05
Summer Review, we must avoid stepping on these holes!
這幾年爆火的智能物聯網(AIoT),到底前景如何?
[flask] ORM one to many relationship