当前位置:网站首页>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 ~~
边栏推荐
- Lombok makes the pit of ⽤ @data and @builder at the same time
- MySQL
- 电气工程及其自动化
- MySQL - common functions - string functions
- STM32 project -- Topic sharing (part)
- 6-6漏洞利用-SSH安全防御
- The so-called consumer Internet only matches and connects industry information, and does not change the industry itself
- Error in fasterxml tostringserializerbase
- Use of fiddler
- MySQL
猜你喜欢

用全连接+softmax对图片的feature进行分类

Integerset of PostgreSQL

MMDetection3D加载毫米波雷达数据

软件测试——Jmeter接口测试之常用断言

6-6 vulnerability exploitation SSH security defense

Dotconnect for DB2 Data Provider

记一次JAP查询导致OOM的问题分析

What management points should be paid attention to when implementing MES management system

Classify the features of pictures with full connection +softmax

压缩 js 代码就用 terser
随机推荐
NuScenes数据集关于Radar数据的统计
Code line breaking problem of untiy text box
Linear list --- circular linked list
[leetcode]Search for a Range
6-6漏洞利用-SSH安全防御
C#/VB. Net to delete watermarks in word documents
MySQL提升大量数据查询效率的优化神器
How to design interface test cases? Teach you a few tips to draft easily
What are the applications and benefits of MES management system
Summer Challenge database Xueba notes (Part 2)~
unity webgl自适应网页尺寸
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?
Mmdetection3d loads millimeter wave radar data
Integerset of PostgreSQL
wireshark安装
从零安装Redis
The 8 element positioning methods of selenium that you have to know are simple and practical
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
Untiy文本框的代码换行问题
How to build a 32core raspberry pie cluster from 0 to 1