当前位置:网站首页>(C language) octal conversion decimal
(C language) octal conversion decimal
2022-07-02 12:06:00 【Study silently every day】
Tips : When the article is finished , Directories can be generated automatically , How to generate it, please refer to the help document on the right
Preface
OK, Today I'll share a simple code .
I refer to other authors for this code , But I made simple modifications myself , Briefly introduce the function of this code , Enter an octal number , The code converts the octal number into decimal number output , The algorithm is what I refer to online , Then I joined while loop , Wait for the new value after the conversion , Keep switching , You can always cycle through , Until the input is a capital “Z”, And then the program exits .
One 、 Code
The code is as follows ( Example ):
Generally speaking , Code written by a good programmer , There must be very readable notes , therefore , I also develop this habit , Write the notes in detail , Everyone read the code , Look at the notes , You can read the code clearly ,OK, Code up :
#include "stdio.h" // The header file
#include &
边栏推荐
- YYGH-BUG-04
- Take you ten days to easily finish the finale of go micro services (distributed transactions)
- Cmake cross compilation
- 【2022 ACTF-wp】
- 史上最易懂的f-string教程,收藏这一篇就够了
- Fabric. JS 3 APIs to set canvas width and height
- Time format display
- SCM power supply
- Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
- Codeforces 771 div2 B (no one FST, refers to himself)
猜你喜欢
CONDA common command summary
Small guide for rapid formation of manipulator (VII): description method of position and posture of manipulator
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
Data analysis - Matplotlib sample code
MSI announced that its motherboard products will cancel all paper accessories
Larvel modify table fields
Flesh-dect (media 2021) -- a viewpoint of material decomposition
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
From scratch, develop a web office suite (3): mouse events
H5,为页面添加遮罩层,实现类似于点击右上角在浏览器中打开
随机推荐
HOW TO EASILY CREATE BARPLOTS WITH ERROR BARS IN R
Le tutoriel F - String le plus facile à comprendre de l'histoire.
【2022 ACTF-wp】
Natural language processing series (I) -- RNN Foundation
5g era, learning audio and video development, a super hot audio and video advanced development and learning classic
QT meter custom control
pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示
Cmake cross compilation
Leetcode209 长度最小的子数组
How to Add P-Values onto Horizontal GGPLOTS
基于Arduino和ESP8266的Blink代码运行成功(包含错误分析)
史上最易懂的f-string教程,收藏这一篇就够了
Differences between nodes and sharding in ES cluster
On data preprocessing in sklearn
Leetcode739 每日温度
Pyqt5+opencv project practice: microcirculator pictures, video recording and manual comparison software (with source code)
行业的分析
easyExcel和lombok注解以及swagger常用注解
BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
Flesh-dect (media 2021) -- a viewpoint of material decomposition