Telegram Group & Telegram Channel
تطبيق (8)

#include <iostream.h>

int main()
{
int a=6 , b=7 ;
cout <<(a & b)<<"\n";
cout<<(a | b) <<"\n";
cout<< (!(a | b))<<"\n";
cout << (a<<2)<<"\n";
cout << (b>>1)<<"\n";
}

المخرجات من البرنامج
6
7 0 24 3

المخرج الأول ع يكون 6 لأن ع نحول ال6و7الى النظام الثنائي ونعمل بينهم عملية and....

6 = 0110
7 = 0111 &
----------------
0110 = 6

المخرج الثاني ع يكون 7ونفس التعليل ع نحولهم الى الثنائي ونعمل عملية or....

6 = 0110
7 = 0111 |
----------------
0111 = 7



المخرج الثالث ع يكون 0 أي عملنا عملية النفي لعملية الor .....

نفي ال 111ْع يكون 0


اما المخرج الرابع والخامس خذها بكل بساطه عند التزحيف الى اليسار بكل تزحيف اضرب في 2 في المثال زحفنا a الذي قيمة 6 بمقدار 2 فنضرب 6*2*2 يكون الناتج 24 .

وعند التزحيف الى اليمين نقسمه على 2 حسب عدد مرات التزحيف في المثال زحفنا b=7 الى اليمين بمقدار 1 نقسم 7 على 2 ينتج 3 ونهمل الباقي ....


🖋 م . أحمد قطران

انتهى ....



tg-me.com/Beprogramming/1398
Create:
Last Update:

تطبيق (8)

#include <iostream.h>

int main()
{
int a=6 , b=7 ;
cout <<(a & b)<<"\n";
cout<<(a | b) <<"\n";
cout<< (!(a | b))<<"\n";
cout << (a<<2)<<"\n";
cout << (b>>1)<<"\n";
}

المخرجات من البرنامج
6
7 0 24 3

المخرج الأول ع يكون 6 لأن ع نحول ال6و7الى النظام الثنائي ونعمل بينهم عملية and....

6 = 0110
7 = 0111 &
----------------
0110 = 6

المخرج الثاني ع يكون 7ونفس التعليل ع نحولهم الى الثنائي ونعمل عملية or....

6 = 0110
7 = 0111 |
----------------
0111 = 7



المخرج الثالث ع يكون 0 أي عملنا عملية النفي لعملية الor .....

نفي ال 111ْع يكون 0


اما المخرج الرابع والخامس خذها بكل بساطه عند التزحيف الى اليسار بكل تزحيف اضرب في 2 في المثال زحفنا a الذي قيمة 6 بمقدار 2 فنضرب 6*2*2 يكون الناتج 24 .

وعند التزحيف الى اليمين نقسمه على 2 حسب عدد مرات التزحيف في المثال زحفنا b=7 الى اليمين بمقدار 1 نقسم 7 على 2 ينتج 3 ونهمل الباقي ....


🖋 م . أحمد قطران

انتهى ....

BY مستـ1ــوى حاسوب


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/Beprogramming/1398

View MORE
Open in Telegram


مستـ1ــوى حاسوب Telegram | DID YOU KNOW?

Date: |

Telegram Auto-Delete Messages in Any Chat

Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.

How Does Bitcoin Mining Work?

Bitcoin mining is the process of adding new transactions to the Bitcoin blockchain. It’s a tough job. People who choose to mine Bitcoin use a process called proof of work, deploying computers in a race to solve mathematical puzzles that verify transactions.To entice miners to keep racing to solve the puzzles and support the overall system, the Bitcoin code rewards miners with new Bitcoins. “This is how new coins are created” and new transactions are added to the blockchain, says Okoro.

مستـ1ــوى حاسوب from us


Telegram مستـ1ــوى حاسوب
FROM USA