当前位置:网站首页>Consolidate -c operator
Consolidate -c operator
2022-07-01 11:58:00 【Jinan medical applet champion】
Foundation entry consolidation
#region Operator 071 The arithmetic Relationship Logic
// The arithmetic
int suan = 1;
int suan2 = 2;
int suan3 = suan + suan2;
Console.WriteLine(" Operator arithmetic operator addition calculation :{0}",suan3);
// Comparison operator == > <
// == Indicates that the results of the operation of the expressions on both sides are equal , Notice that there are two equal signs .
// such as 10 % 2 It's an expression . 0 Alone is an expression , Although only a number .
Console.WriteLine("10 Is it an even number ?!:"+ (10 % 2 ==0));
// For example, design 1 Expression . 5 Start divination at the third day of August in Xinsi year , The specific divination is as follows : The method of divination : number of years + Monthly number + days , Its sum is divided by eight , Mod , Divide by eight . Ren Yin Nian 3 Earth branch numbers , Lunar calendar 6 month , Digital 6, The third day of June .
// 3+6+3=12 % 8 = The result is false, How can I serve true?
Console.WriteLine(" Residual calculation results :"+(12 % 8 ==0.96));
// Logical operators
//【 example 2】 Judge 2017 Whether the year is a leap year .
// According to the title requirements , The judgment of leap year needs to meet one of two conditions , One is that the year can be 4 Integer but cannot be 100 Integers , One is that it can be 400 to be divisible by . The code is as follows .
Console.WriteLine(" Judge 2017 Whether the year is a leap year ?:"+((2017 % 4 ==0 && 2017 % 100 !=0 ) || (2017 % 400 ==0)));
Console.WriteLine(" Judge 2018 Whether the year is a leap year ?:" + ((2018 % 4 == 0 && 2018 % 100 != 0) || (2018 % 400 == 0)));
#endregioneffect

边栏推荐
- Redis启动与库进入
- Question: what professional qualities should test engineers have?
- redis中value/list
- The specified service is marked for deletion
- Personnaliser le plug - in GRPC
- 耐克如何常年霸榜第一名?最新財報答案來了
- Value/list in redis
- 241. Design priority for operational expressions: DFS application questions
- Learning summary on June 28, 2022
- 小米手机解BL锁教程
猜你喜欢

Abbirb120 industrial robot mechanical zero position

Learning summary on June 28, 2022

About keil compiler, "file has been changed outside the editor, reload?" Solutions for

研发效能度量框架解读

图的理论基础

深入理解 grpc part1

自组织是管理者和成员的双向奔赴
![[Maui] add click events for label, image and other controls](/img/d6/7ac9632681c970ed99c9e4d3934ddc.jpg)
[Maui] add click events for label, image and other controls

Rural guys earn from more than 2000 a month to hundreds of thousands a year. Most brick movers can walk my way ǃ

Why must we move from Devops to bizdevops?
随机推荐
Raspberry pie 4B installation tensorflow2.0[easy to understand]
CAD如何設置標注小數比特
Value/sortedset in redis
Use set_ Handler filters out specific SystemC wrapping & error messages
Computer graduation project asp Net attendance management system vs developing SQLSERVER database web structure c programming computer web page source code project
Skip the test cases to be executed in the unittest framework
GID:旷视提出全方位的检测模型知识蒸馏 | CVPR 2021
Compile and debug net6 source code
Dlhsoft Kanban, Kanban component of WPF
redis中value/SortedSet
Summary of JFrame knowledge points 2
Prepare for the Blue Bridge Cup Day10__ PWM control light brightness
241. 为运算表达式设计优先级 : DFS 运用题
[MCU] [nixie tube] nixie tube display
Implementation of address book management system with C language
Redis启动与库进入
Golang des-cbc
Golang des-cbc
sshd_ Discussion on permitrotlogin in config
Emotion analysis based on IMDB comment data set