9.4.1 The Condition Operators (? true_value : false_value) | Ternary Operators

Published on ● Video Link: https://www.youtube.com/watch?v=BtOUu82Xjcw



Duration: 9:37
32 views
6


#រៀនសរសេរកូដជាមួយចិត្រា #javabasic #pythonbasic #javabasics #codingwithchitra

The Condition Operators (? true_value : false_value) | Ternary Operators
យើងក៏អាចប្រើ Conditional Operator ជា ?: បានផងដែរ។
វាដូចទៅនឹង លក្ខខណ្ឌ if-then-else ផងដែរ។ ហើយវាក៏អាចហៅឈ្មោះម្យ៉ាងទៀតថា Ternary Operators ព្រោះវាមាន Operand ដល់ទៅ៣។ មេរៀនលំអិតច្បាស់មាននៅក្នុងមេរៀន Control Flow Statements

Ex1.
int x, y;
x = 10;
y = ( x == 5) ? 20 : 30;
System.out.println(“The value of y is : “ + y);

Ex2.
int x, y;
x = 10;
y = ( x == 10) ? 20 : 30;
System.out.println(“The value of y is : “ + y);




ម្រងវីដេអូមេរៀន Python 👉 https://t.ly/AkY3Y
កម្រងវីដេអូមេរៀន java 👉 https://t.ly/WjMVf

YouTube Channel 👉 https://www.youtube.com/@codingwithchitra
Facebook Page 👉 https://www.facebook.com/khmshared
Telegram Channel 👉 https://t.me/codingwithchitra
——
#freecourses2024 #python #pythontutorial #free #computersciencestudent #codingwithchitra #coder #codechallenge #python3 #រៀនសរសេរកូដ #codingfromzerotohero #pythonprogramming #រៀនសរសេរកូដជាមួយចិត្រា #freecoursedaily #pythonbasics #CodingWithChitra #code #sololearncoding #pythonhub #pythonquiz #freecourse #pythonmemes #codinglife #ConditionalOperator, #TernaryOperator, #Programming, #IfElseShortcut, #Coding, #ProgrammingTips, #CodeOptimization, #JavaScript, #Python, #CPlusPlus, #DeveloperTools, #SoftwareDevelopment, #CodingSimplified, #TechTips




Other Videos By Coding with Chitra-សរសេរកូដជាមួយចិត្រា


2024-06-11Part 9.5 ការបម្លែងទិន្នន័យ ក្នុងភាសា Python | Python - Type Conversion
2024-06-04Part 9.4 ប្រភេទទិន្នន័យជាលេខកុំផ្លិច ក្នុងភាសា Python | Python - Complex Data Types
2024-06-04Part 9.3 ប្រភេទទិន្នន័យជាលេខទសភាគ ក្នុងភាសា Python | Python - Float Data Types
2024-06-04Part 9.2 ប្រភេទទិន្នន័យជាលេខគត់ ក្នុងភាសា Python | Python - Integer Data Types
2024-06-04Part 9.1 ប្រភេទទិន្នន័យជាលេខ ក្នុងភាសា Python | Python - Numbers Data Types
2024-06-04Part 9 ប្រភេទទិន្នន័យជាលេខ ក្នុងភាសា Python | Python - Numbers Data Types
2024-05-30Part 8.4 លំហាត់អនុវត្ត​មេរៀន ប្រភេទទិន្នន័យ (Data Type) នៅក្នុងភាសា Python
2024-05-29Part 10. លំហាត់អនុវត្ត ក្នុងមេរៀន Scanner Class
2024-05-29Part 10 - របៀបចាប់យកតម្លៃចេញពី Keyboard ដោយប្រើប្រាស់ Scanner Class
2024-05-289. លំហាត់អនុវត្ត ក្នុងមេរៀន Basic Operators | Practice Exercise Basic Operators
2024-05-289.4.1 The Condition Operators (? true_value : false_value) | Ternary Operators
2024-05-22ក្មួយៗរបស់ខ្ញុំទាំងស្អាត ទាំងសង្ហារហើយឆ្លាតៗទៀត
2024-05-21កំណែលំហាត់ក្នុងមេរៀនអថេរក្នុងភាសា Python | Correct the exercise in lesson Variables in Python
2024-05-21បៀបប្រើប្រាស់ VS Code ដើម្បីសរសេរកូដភាសា Python | How to use VS Code to write Python Code
2024-05-21របៀបទាញយកនិងតម្លើងកម្មវិធី Visual Studio Code | How to download and install VS Code on Window11
2024-05-20Python លំហាត់អនុវត្ត មេរៀនអថេរ(Variables) សូមចូលរួមធ្វើអោយបានទាំងអស់គ្នា
2024-05-20លំហាត់ក្នុងមេរៀន7.3 Bank Loan Interest Calculation
2024-05-18#python #pythonquiz #coding #pythontutorial #python3
2024-05-18#phython #pythonlearning #quiz #pythonquiz #quizchallenge #pythonlearning
2024-05-18#phython #computerlanguage #pythonlearning #quiz #quiztime #quizgames #pythonlearning #easycode
2024-05-18#phython #pythonquiz #codinglife #codinglove #pythonlearning #programminglanguage #programming



Tags:
programming
រៀនសរសេរកូដ
codekhmer
PythonTutorial
LearningPythonInKhmer
PythonForNationalDevelopment
JavaLearning
LearningJava
useJava
JavaForNationalDevelopment
JavaUsage
JavaCoding
JavaForProgrammingPractice
LearningJavaInKhmer
JavaTutorial
ការសិក្សាកូដជាភាសាខ្មែរ
ប្រើប្រាស់Java
Python Basic
ConditionalOperator
TernaryOperator
Programming
IfElseShortcut
Coding
ProgrammingTips
CodeOptimization
JavaScript
Python
CPlusPlus
DeveloperTools
SoftwareDevelopment
CodingSimplified
TechTips