当前位置:网站首页>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 ~~
边栏推荐
- ODBC database connection of MFC windows programming [147] (with source code)
- wzoi 1~200
- MySQL
- 普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
- C#/VB. Net to delete watermarks in word documents
- Pioneer of Web3: virtual human
- How to design interface test cases? Teach you a few tips to draft easily
- CSDN summer camp course project analysis
- Statistics of radar data in nuscenes data set
- 【Socket】①Socket技术概述
猜你喜欢
Classify the features of pictures with full connection +softmax
进程管理基础
Cloud Mail . NET Edition
MySQL提升大量数据查询效率的优化神器
Fundamentals of process management
Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
Mmdetection3d loads millimeter wave radar data
Summer Challenge database Xueba notes (Part 2)~
Web3的先锋兵:虚拟人
NuScenes数据集关于Radar数据的统计
随机推荐
A new path for enterprise mid Platform Construction -- low code platform
Web3's need for law
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
Redis入门完整教程:复制拓扑
MySQL
Classify the features of pictures with full connection +softmax
wireshark安装
Unity custom webgl packaging template
Oracle中日期的使用方法实例
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
How to build a 32core raspberry pie cluster from 0 to 1
CSDN 夏令营课程 项目分析
MySQL
leetcode:5. Longest palindrome substring [DP + holding the tail of timeout]
MySQL提升大量数据查询效率的优化神器
Dotconnect for DB2 Data Provider
安全巡检的工作
Redis入门完整教程:复制原理
Argo workflows source code analysis
【2022国赛模拟】多边形——计算几何、二分答案、倍增