Skip to main content

Posts

C++ For Loop (फॉर लूप )

C++ For Loop(फॉर  लूप ) The C++ for loop is used to iterate a part of the program several times.  If the number of iteration is fixed, it is recommended to use for loop than while or do-while loops. The C++ for loop is same as C/C#.  We can initialize variable, check condition and increment/decrement value. for (initialization; condition; incr/decr) {     //code to be executed      }  PetaByte Center C++ For Loop Example #include <iostream.h>    int  main()  {             for ( int  i=1;i<=10;i++) {                    cout<<i << "\n" ;          } }     Output:1 2 3 4 5 6 7 8...

Boolean algebra

Boolean algebra Boolean algebra can be considered as an algebra that deals with binary variables and logic operations. Boolean algebraic variables are designated by letters such as A, B, x, and y. The basic operations performed are AND, OR, and complement. The Boolean algebraic functions are mostly expressed with binary variables, logic operation symbols, parentheses, and equal sign. For a given value of variables, the Boolean function can be either 1 or 0. For instance, consider the Boolean function: F = x + y'z The logic diagram for the Boolean function F = x + y'z can be represented as: The Boolean function F = x + y'z is transformed from an algebraic expression into a logic diagram composed of AND, OR, and inverter gates. Inverter at input 'y' generates its complement y'. There is an AND gate for the term y'z , and an OR gate is used to combine the two terms (x and y'z). The ...

Logic Gates(लॉजिक गेट्स )

Logic Gates(लॉजिक गेट्स ) o     The logic gates are the main structural part of a digital system. o     Logic Gates are a block of hardware that produces signals of binary 1 or 0 when input logic requirements are satisfied. o     Each gate has a distinct graphic symbol, and its operation can be described by means of algebraic expressions. o     The seven basic logic gates includes: AND, OR, XOR, NOT, NAND, NOR, and XNOR. o     The relationship between the input-output binary variables for each gate can be represented in tabular form by a truth table. o     Each gate has one or two binary input variables designated by A and B and one binary output variable designated by x. AND GATE :(एंड गेट ) The AND gate is an electronic circuit which gives a high output only if all its inputs are high. The AND operation is represented by a dot (.) sign. OR GATE:(ओर  गेट ) ...

C++ switch(स्विच)

C++ switch(स्विच) हेलो स्टूडेंट्स आज मै आपको c++ में स्विच स्टेटमेंट के बारे में बताता हूँ | जब हमको कोई मल्टीप्ल कंडीशंस को एक्सेक्यूटे कराना हो तो हम स्विच स्टेटमेंट का यूज़ करते है |  The C++ switch statement executes one statement from multiple conditions. It is like if-else-if ladder statement in C++ . switch (expression) {       case  value1:          //code to be executed;           break ;    case  value2:        //code to be executed;           break ;    ......      default :           //code to be executed if all cases are not matched;         brea...

What is Linux.(लिनक्स क्या है ?)

What Is Linux( लिनक्स क्या है ?) In the simple language Linux(लिनक्स ) is an operating system (OS).  लिनक्स एक बेसिक ऑपरेटिंग सिस्टम है ये बिलकुल विंडोज ,एप्पल , मैक  की तरह ही होता है |  We all are familiar with other operating systems like Microsoft windows, Apple Mac OS, iOS, Google android, etc, just like them linux is also an operating system. An operating system is a software that enables communication between computer hardware and software.  It conveys input to get processed by the processor and brings output to the hardware to display it.  This is the basic function of an operating system. Although, it performs many other important tasks, let's not talk about that. Linux is around us since mid 90s. It can be used from wristwatches to supercomputers.  It is everywhere in our phones, laptops, PCs, cars and even in refrigerators. It is very much famous among the developers and normal computer users. ...