当前位置:网站首页>(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 &边栏推荐
猜你喜欢

HOW TO ADD P-VALUES TO GGPLOT FACETS

HOW TO CREATE A BEAUTIFUL INTERACTIVE HEATMAP IN R

Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement

Test shift left and right

自然语言处理系列(一)——RNN基础

K-Means Clustering Visualization in R: Step By Step Guide

深入理解P-R曲线、ROC与AUC

Esp32 audio frame esp-adf add key peripheral process code tracking

倍增 LCA(最近公共祖先)

基于Arduino和ESP8266的Blink代码运行成功(包含错误分析)
随机推荐
YYGH-10-微信支付
xss-labs-master靶场环境搭建与1-6关解题思路
Le tutoriel F - String le plus facile à comprendre de l'histoire.
(C语言)八进制转换十进制
[untitled] how to mount a hard disk in armbian
Applet link generation
How to Add P-Values onto Horizontal GGPLOTS
to_ Bytes and from_ Bytes simple example
Easyexcel and Lombok annotations and commonly used swagger annotations
PyTorch nn. Full analysis of RNN parameters
Jenkins voucher management
Codeforces 771-div2 C (trouble, permutation is not very good)
【C语言】杨辉三角,自定义三角的行数
From scratch, develop a web office suite (3): mouse events
YYGH-BUG-05
easyExcel和lombok注解以及swagger常用注解
Thesis translation: 2022_ PACDNN: A phase-aware composite deep neural network for speech enhancement
Leetcode209 subarray with the smallest length
YYGH-BUG-04
Fresh, 2022 advanced Android interview must know 100 questions (interview questions + answer analysis)