Sep 29, 2019

LOGIC GATES


logic gates LOGIC GATES:   Logical gates are the operator which connect two or more input signals by checking logic between them and form a new signals.   Some basic logical gates are and the form which easy to understand.        1.       Not gate        2.       And gate        3.      ...

Sep 28, 2019

C++ Programming Examples


c++ programming examples       Recommended link :Basic C++ Programs       1.       Write a C++ program that takes two numbers and display the product of two numbers #include<stdio.h> #include<conio.h> void main () { int a, b, sum; printf (“enter two numbers”); scanf (“%d”, &a); scanf (“%d”, &b); sum= a*b; printf (“product of given number is =%d”, sum); getch...

Sep 24, 2019

FICTION DEFINITION


FICTION DEFINITION:        Literature in the form of prose, especially novels, that describes imaginary events and people. fiction definition  Types: There are basically two type of fiction       1.   Commercial fiction: Also called genre fiction, categories is western, romance, historical, mystery, fantasy and horror.       2.   Literary fiction: Used...

C++ Function Example


c++ function program example Problem:  Write a C program that accepts two integer values between 25 to 75 and return 1 if there is a common digit in both numbers otherwise 0 . Program: #include<stdio.h> #include<conio.h> int check (int a, int b) { int c,d,r,f; c=a%10; d=a/10; logical operator example e=b%10; f=b/10; if( c==d || c==e || c==f || d==e || d===f || e==f ) return 1; else return 0; } void main ( ) { int a,b,r; printf("...

Generate a table in C++


Problem: Q. Write a program that print a table of any given number by checking the condition if the given is not equal to zero then generate a table. used not operator. Program: #include<stdio.h> #include<conio.h> int main () not operator in c++ {                 int a,b,i;                ...

LOGICAL OPERATOR IN C++


logical operator in c++ LOGICAL OPERATOR IN C++:  In C programming different types of operator is used to perform a special and specific task such as Assignment operator and Airthematic operation likely those logical operator also used to check the logic by identifying the given condition. We used basic three type of logical operator in C and C++ during programming which are as follow             1.       And...