Avatar
Crazy Code
2b90fd0bfdc3f6585efe375d31b9538e80297ff9a6880cf9c026619824a33456
Programmer, data scientist, Bitcoiner، Solidity

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

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

Here is the mindmap diagram illustrating Symbols for Inequalities with code examples:

#nostr #cpp #AI

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;

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

Replying to Avatar Javed AB

inshallah planning to teach how to code in #python and take away fear from coding for #newbies

initial text for it is available at https://javedab.com/

inshallah the videos will be available in 3 languages

#freepalestine #coding #programming #learning #education #tech #python

Nice step bro

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

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

A contract between two parties on the blockchain in the Solidity language

#nostr #AI #solidity

almost👀

I will start posting general information about IT

Are you ready?🔥🔥👀

#Bitcoin

#bitcoin

#AI

#Artificial intelligence

#Python #solidity #c++ #C++ #c#

All Support

Honestly, a special account