当前位置:网站首页>C language: find the palindrome number whose 100-999 is a multiple of 7
C language: find the palindrome number whose 100-999 is a multiple of 7
2022-07-04 12:35:00 【Nianchi ichthyology programming】
#include <stdio.h>
int main()
{
int i,a,c;
for(i = 100 ; i <= 999 ; i++){
a = i/100;
c = i%10;
if(a==c && i%7==0){
printf("%5d",i);
}
}
return 0;
}
边栏推荐
- Here, the DDS tutorial you want | first experience of fastdds - source code compilation & Installation & Testing
- 01. Basics - MySQL overview
- Exness: positive I win, negative you lose
- 03_ Armv8 instruction set introduction load and store instructions
- OSI seven layer model & unit
- Haproxy cluster
- Possible to restore a backup of SQL Server 2014 on SQL Server 2012?
- C语言:求100-999是7的倍数的回文数
- 13、 C window form technology and basic controls (3)
- Reptile learning 4 winter vacation learning series (1)
猜你喜欢
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 15
What if the chat record is gone? How to restore wechat chat records on Apple Mobile
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
Flet教程之 按钮控件 ElevatedButton入门(教程含源码)
Some summaries of the 21st postgraduate entrance examination 823 of network security major of Shanghai Jiaotong University and ideas on how to prepare for the 22nd postgraduate entrance examination pr
Azure solution: how can third-party tools call azure blob storage to store data?
Ternsort model integration summary
Ultimate bug finding method - two points
It's hard to hear C language? Why don't you take a look at this (V) pointer
How to judge the advantages and disadvantages of low code products in the market?
随机推荐
Anti clockwise rotation method of event arrangement -- PHP implementation
DVC use case (VI): Data Registry
Pat 1059 prime factors (25 points) prime table
Googgle guava ImmutableCollections
[the way of programmer training] - 2 Perfect number calculation
Star leap plan | new projects are continuously being recruited! MSR Asia MSR Redmond joint research program invites you to apply!
CSDN documentation specification
BCD code Baidu Encyclopedia
Reptile learning 4 winter vacation series (3)
Entitas learning [iv] other common knowledge points
. Does net 4 have a built-in JSON serializer / deserializer- Does . NET 4 have a built-in JSON serializer/deserializer?
SAP ui5 date type sap ui. model. type. Analysis of the display format of date
It's hard to hear C language? Why don't you take a look at this (V) pointer
Source code analysis of the implementation mechanism of multisets in guava class library
ASP. Net razor – introduction to VB loops and arrays
Practical dry goods: deploy mini version message queue based on redis6.0
TCP fast retransmission sack mechanism
Reptile learning winter vacation series (2)
Ultimate bug finding method - two points
What if the chat record is gone? How to restore wechat chat records on Apple Mobile