当前位置:网站首页>(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 &边栏推荐
- This article takes you to understand the operation of vim
- Leetcode739 每日温度
- Esp32 audio frame esp-adf add key peripheral process code tracking
- Map和Set
- Lekao: contents of the provisions on the responsibility of units for fire safety in the fire protection law
- Leetcode14 最长公共前缀
- K-Means Clustering Visualization in R: Step By Step Guide
- Time format display
- Develop scalable contracts based on hardhat and openzeppelin (I)
- Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
猜你喜欢

MSI announced that its motherboard products will cancel all paper accessories

还不会安装WSL 2?看这一篇文章就够了

HOW TO CREATE AN INTERACTIVE CORRELATION MATRIX HEATMAP IN R

倍增 LCA(最近公共祖先)

PyTorch nn. Full analysis of RNN parameters

CONDA common command summary

【2022 ACTF-wp】

PyTorch nn.RNN 参数全解析

初始JDBC 编程

HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R
随机推荐
pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示
Depth filter of SvO2 series
二分刷题记录(洛谷题单)区间的甄别
Leetcode topic [array] -540- single element in an ordered array
Those logs in MySQL
How to Easily Create Barplots with Error Bars in R
Leetcode14 最长公共前缀
Analyse de l'industrie
On data preprocessing in sklearn
Gaode map test case
Dynamic memory (advanced 4)
Leetcode922 按奇偶排序数组 II
【2022 ACTF-wp】
BEAUTIFUL GGPLOT VENN DIAGRAM WITH R
SVO2系列之深度滤波DepthFilter
Esp32 audio frame esp-adf add key peripheral process code tracking
(C语言)3个小代码:1+2+3+···+100=?和判断一个年份是闰年还是平年?和计算圆的周长和面积?
mysql表的增删改查(进阶)
FastDateFormat为什么线程安全
HOW TO EASILY CREATE BARPLOTS WITH ERROR BARS IN R