当前位置:网站首页>(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 &边栏推荐
- php 二维、多维 数组打乱顺序,PHP_php打乱数组二维数组多维数组的简单实例,php中的shuffle函数只能打乱一维
- 初始JDBC 编程
- 小程序链接生成
- Map和Set
- Leetcode209 长度最小的子数组
- JZ63 股票的最大利润
- XSS labs master shooting range environment construction and 1-6 problem solving ideas
- Mish shake the new successor of the deep learning relu activation function
- 二分刷题记录(洛谷题单)区间的甄别
- Easyexcel and Lombok annotations and commonly used swagger annotations
猜你喜欢

How to Easily Create Barplots with Error Bars in R

二分刷题记录(洛谷题单)区间的甄别

PyTorch搭建LSTM实现服装分类(FashionMNIST)

Seriation in R: How to Optimally Order Objects in a Data Matrice

Filtre de profondeur de la série svo2

H5,为页面添加遮罩层,实现类似于点击右上角在浏览器中打开

Natural language processing series (I) -- RNN Foundation

HR wonderful dividing line

How does Premiere (PR) import the preset mogrt template?

YYGH-BUG-04
随机推荐
Dynamic memory (advanced 4)
Leetcode209 subarray with the smallest length
Yygh-10-wechat payment
Natural language processing series (I) -- RNN Foundation
How to Visualize Missing Data in R using a Heatmap
Map和Set
(C语言)3个小代码:1+2+3+···+100=?和判断一个年份是闰年还是平年?和计算圆的周长和面积?
to_ Bytes and from_ Bytes simple example
The most understandable f-string tutorial in history, collecting this one is enough
[geek challenge 2019] upload
This article takes you to understand the operation of vim
MySQL stored procedure cursor traversal result set
Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer
[QT] Qt development environment installation (QT version 5.14.2 | QT download | QT installation)
Take you ten days to easily finish the finale of go micro services (distributed transactions)
5g era, learning audio and video development, a super hot audio and video advanced development and learning classic
Fabric. JS 3 APIs to set canvas width and height
深入理解P-R曲线、ROC与AUC
【2022 ACTF-wp】
Le tutoriel F - String le plus facile à comprendre de l'histoire.