Crazy Code's avatar
Crazy Code
npub19wg0...4jn2
Programmer, data scientist, Bitcoiner، Solidity
Crazy Code's avatar
Crazy Code 1 year ago
Today's Topic: Loops, starting with the for loop In this example, we're using a for loop to print numbers from 1 to 5. #AI #IT #cpp #nostr #value4value
Crazy Code's avatar
Crazy Code 1 year ago
In the first picture it has a code for the simple (if) In the second picture there is a code for (if - else) if it is not correct in the first condition it moves to else In the picture, it explains (if-if else -else) there are more than two cases if they are not suitable with the two cases move to else #nostr #cpp #AI
Crazy Code's avatar
Crazy Code 1 year ago
image Here is the mindmap diagram illustrating Symbols for Inequalities with code examples: #nostr #cpp #AI
Crazy Code's avatar
Crazy Code 1 year ago
image 1- Data Type : Primitive Data Types A-int: *Data type for an integer. *Used to store whole numbers without fractions. *Typical size: 4 bytes. *Example: int age = 25; B-char: *Data type for a single character. *Used to store a single character (like 'a' or '1'). *Typical size: 1 byte. *Example: char grade = 'A'; C-float: *Data type for a single-precision floating point number. *Used to store decimal numbers. *Typical size: 4 bytes. *Example: float temperature = 36.6; D-double: *Data type for a double-precision floating point number. *Used to store decimal numbers with greater precision than float. *Typical size: 8 bytes. *Example: double distance = 12345.6789; E-bool: *Data type for a boolean value. *Used to store true or false values. *Typical size: 1 byte (sometimes implemented as 1 bit). *Example: bool isAlive = true; ---------------------------------------------------------------------------------------- Derived Data Types : X- Array: *A collection of elements of the same type stored in contiguous memory locations. *Example: int numbers[5] = {1, 2, 3, 4, 5}; Y- Pointer: *A variable that stores the memory address of another variable. *Example: int* ptr = &age; Z- Reference: *An alias for another variable. *Example: int& ref = age;
Crazy Code's avatar
Crazy Code 1 year ago
image And now it's time for seriousness. We will start learning C++ from scratch to functions... I hope you benefit as much as possible. #nostr #cpp #AI
Crazy Code's avatar
Crazy Code 1 year ago
image The program takes the name of the book from the user, calculates its length excluding the first and last characters, and then prints the result using the Python programming language. #nostr #python #AI
Crazy Code's avatar
Crazy Code 1 year ago
image This code is simple and clear. It uses loops to check for common elements between the two arrays and prints them. It is written in C++ #nostr #c++ #AI
Crazy Code's avatar
Crazy Code 1 year ago
A contract between two parties on the blockchain in the Solidity language #nostr #AI #solidity image
Crazy Code's avatar
Crazy Code 1 year ago
almost👀 I will start posting general information about IT Are you ready?🔥🔥👀 #Bitcoin #bitcoin #AI #Artificial intelligence #Python #solidity #c++ #C++ #c#
Crazy Code's avatar
Crazy Code 1 year ago
I came here for freedom and I will fight for it. 🔥