Lädt...


🔧 Operators


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

int temperature = 30;

if(temperature > 25)
{
    Console.WriteLine("Hot");
}
else if(temperature > 15)
{
    Console.WriteLine("Warm");
}
else
{
    Console.WriteLine("Cold");
}

Natija : Hot.

b) Switch operatoridan foydalanib, quyidagi if-else kodini switch operatoriga o'zgartiring.

int day = 3;

if(day == 1)
{
    Console.WriteLine("Monday");
}
else if(day == 2)
{
    Console.WriteLine("Tuesday");
}
else if(day == 3)
{
    Console.WriteLine("Wednesday");
}
else 
{
    Console.WriteLine("Invalid day");
}

to switch:

int day = 3;

switch(day)
{
    case 1:
    Console.WriteLine("Monday"); break;
    case 2:
    Console.WriteLine("Tuesday"); break;
    case 3:
    Console.WriteLine("Wednesday"); break;
    default:
    Console.WriteLine("Invalid day"); break;
}

c) Ternary operator yordamida quyidagi kodni qisqartiring.

int a = 10;

string result;

if(a > 5)
{
    result = "Greater than 5";
}
else
{
    result = "Less than or equal to 5";
}

to ternary operator:

int a = 10;

string result;

result = (a > 5 ? "Greater than 5":"Less than or equal to 5");
...

🔧 33.Operators (Logical Operators)


📈 24.24 Punkte
🔧 Programmierung

🔧 33.Operators (Logical Operators)


📈 24.24 Punkte
🔧 Programmierung

🔧 34.Operators (Bitwise Operators)


📈 24.24 Punkte
🔧 Programmierung

🔧 Operators (Logical Operators)


📈 24.24 Punkte
🔧 Programmierung

🔧 Advanced JavaScript Operators – Nullish Coalescing, Optional Chaining, and Destructuring Assignment


📈 12.12 Punkte
🔧 Programmierung

🐧 Boolean Logical Operators in C#


📈 12.12 Punkte
🐧 Linux Tipps

🔧 Operators


📈 12.12 Punkte
🔧 Programmierung

🎥 Determine the output of this C code using post-increment operators. Go!


📈 12.12 Punkte
🎥 Videos

🔧 Day 1: Arithmetic Operators Solution


📈 12.12 Punkte
🔧 Programmierung

📰 Three GozNym Malware Operators Sentenced


📈 12.12 Punkte
📰 IT Security Nachrichten

🔧 Short-Circuiting and Logical Operators in JavaScript: &&, ||, ??


📈 12.12 Punkte
🔧 Programmierung

📰 Cirque du Soleil app gives attackers same admin rights as operators


📈 12.12 Punkte
📰 IT Security Nachrichten

🕵️ SamSam Ransomware operators earned more than US$5.9 Million since late 2015


📈 12.12 Punkte
🕵️ Hacking

🔧 Unary, Binary, and Ternary Operators in JavaScript – Explained with Examples


📈 12.12 Punkte
🔧 Programmierung

📰 Critical Infrastructure Operators Implementing Zero Trust in OT Environments


📈 12.12 Punkte
📰 IT Security Nachrichten

🕵️ Steel sheet giant Hoa Sen Group hacked by Maze ransomware operators


📈 12.12 Punkte
🕵️ Hacking

📰 Ransomware operators lurk on your network after their attack


📈 12.12 Punkte
📰 IT Security Nachrichten

📰 'Hades' Ransomware Hits Big Firms, but Operators Slow to Respond to Victims


📈 12.12 Punkte
📰 IT Security Nachrichten

📰 Data exfiltration trend continues to grow among ransomware operators


📈 12.12 Punkte
📰 IT Security Nachrichten

🔧 Understanding JavaScript Operators: A Comprehensive Guide


📈 12.12 Punkte
🔧 Programmierung

🔧 JavaScript Operators, Loops, and Flow Control: A Comprehensive Guide


📈 12.12 Punkte
🔧 Programmierung

🔧 What Are Bitmasks and Bitwise Operators?


📈 12.12 Punkte
🔧 Programmierung

🔧 Mastering Logical Operators in JavaScript: `||`, `&&`, and `!`


📈 12.12 Punkte
🔧 Programmierung

📰 Linux operators: Using |, >, >>, &, &&, !, =, (\) and many more


📈 12.12 Punkte
📰 IT Security Nachrichten

🎥 IoT at Ignite: Big news and useful tips for IoT developers and operators


📈 12.12 Punkte
🎥 Video | Youtube

🐧 Using control operators in the Bash shell | Opensource.com


📈 12.12 Punkte
🐧 Linux Tipps

📰 Red Cross Asks For 50 Ham Radio Operators To Fly To Puerto Rico


📈 12.12 Punkte
📰 IT Security Nachrichten

📰 Ransomware operators might be dropping file encryption in favor of corrupting files


📈 12.12 Punkte
📰 IT Security Nachrichten

🕵️ Ransomware operators love them: Key trends in the Initial Access Broker space


📈 12.12 Punkte
🕵️ Hacking

🪟 Rainbow Six Siege forces you to try new Operators new Attrition mode


📈 12.12 Punkte
🪟 Windows Tipps

🕵️ Are Maze operators behind the attack on the IT services giant Cognizant?


📈 12.12 Punkte
🕵️ Hacking

matomo