C/C++ langauge odd and even numbers - Part4

2021 ж. 8 Шіл.
2 616 Рет қаралды

we apply this defination in C Language:
A number is odd if it has 1 as its rightmost bit in bitwise representation. It is even if it has 0 as its rightmost bit in bitwise representation. This can be found by using bitwise AND on the number and 1. If the output obtained is 0, then the number is even and if the output obtained is 1, then the number is odd.

Пікірлер
  • مساء الخير استاذ بدون زحمه ممكن تشرحلنه هالسؤال او تنزلنه الحل اكتب برنامجًا في C Plus يحتوي على فئة تتضمن ما يلي بيانات الطالب معرف الطالب والاسم والعمر ومستوى الصف. استخدم وظيفتين ، الأولى من الداخل يقوم الفصل بقراءة معلومات الطالب والآخر خارج الفصل لعرض معلومات الطالب وس٢ نفسه لكن يريد اذا كانوا ٥ طلاب

    @suraaalsadi9825@suraaalsadi98252 жыл бұрын
    • ممكن توضحي اكثر قصدك قائمة باسماء الطلاب وتفاصيل درجاتهم ؟ وشو قصدك من الدخل ؟

      @MssabObeado@MssabObeado2 жыл бұрын
    • @@MssabObeado استاذ هذا السؤال الي راده الاستاذ. من عدنه Write a program in C Plus that contains a class that includes the following student data: Student ID, name, age and grade level. Use two functions, the first inside the class to read the student’s information and the other outside the class to display the student’s information. وراد نفس البرنامج لكن اذا كانوا ٥ طلاب

      @suraaalsadi9825@suraaalsadi98252 жыл бұрын
    • @@suraaalsadi9825 طيب ممكن لو سمحتي تبعثي السؤال كامل على الصغحة الرسمية وانشالله رح قوم بعمل شرح كامل او نراسلك بالحل . شكرا لسؤالك

      @MssabObeado@MssabObeado2 жыл бұрын
    • @@MssabObeado تسلم استاذ ينطيك صحه وعافيه اكون ممنونه منك

      @suraaalsadi9825@suraaalsadi98252 жыл бұрын
    • @@MssabObeado استاذ رسلت السؤال والماده ع الفيس الخاص بيك

      @suraaalsadi9825@suraaalsadi98252 жыл бұрын
KZhead