当前位置:网站首页>C language exercises_ one
C language exercises_ one
2022-07-07 02:46:00 【51CTO】
Be careful : Compiler uses as VS2019, Due to the compiler , The input functions of the following codes are written as scanf_s();
- Calculation n The factorial .
Code :
result :

- Calculation 1!+2!+3!+……+10!
Code :
perhaps :( This method is relatively simple , More efficient code )
result :


- Find a specific number in an ordered array n.( Explain two-point search )
Code :
result :

- Write code , Demonstrate the movement of multiple characters from both ends , Converging in the middle .
Code :
result :

- Write code to achieve , Simulate user login scenarios , And can only log in three times .( Only three passwords are allowed , If the password is correct Prompt to log in as , If all three inputs are wrong , Then exit the program .
Code :
result :

Thank you for watching , If there is any mistake , Welcome to point out ~~
边栏推荐
- Qpushbutton- "function refinement"
- Web3's need for law
- MySQL - common functions - string functions
- Unity custom webgl packaging template
- Cloud Mail . NET Edition
- STM32 project -- Topic sharing (part)
- LeetCode 77:组合
- unity webgl自适应网页尺寸
- 导数、偏导数、方向导数
- Matlb| economic scheduling with energy storage, opportunity constraints and robust optimization
猜你喜欢
随机推荐
This week's hot open source project!
服装企业部署MES管理系统的五个原因
Convert widerperson dataset to Yolo format
Summary of basic debugging steps of S120 driver
Go swagger use
1 -- Xintang nuc980 nuc980 porting uboot, starting from external mx25l
unity webgl自适应网页尺寸
测试优惠券要怎么写测试用例?
widerperson数据集转化为YOLO格式
Safety delivery engineer
Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
Error in fasterxml tostringserializerbase
【Socket】①Socket技术概述
Douban average 9 x. Five God books in the distributed field!
牛客编程题--必刷101之双指针篇
MySQL
MySQL - common functions - string functions
Dotconnect for DB2 Data Provider
A new path for enterprise mid Platform Construction -- low code platform
Work of safety inspection






![[Mori city] random talk on GIS data (II)](/img/5a/dfa04e3edee5aa6afa56dfe614d59f.jpg)


