Logic Building
Data_Types Operators Algorithms Pseudo_Code
Hello Guys, Let's Play with Logic.........but wait, before that you must know that how to build Logic in Programming as you all know that programming is all about Logic.....
So Let's start the game...
If you are new Here that means you are absolutely right Place, Or If you already know, than you will learn new things here!
If we Talk about the Programming we should be familiar with these terms.....
1. Variable
2. Data Types
3.Keywords
Variable: Variable is something which holds the value.
Like: a=10;
Here,
a----------------------> Variable
10 ---------------------> Value
* The Value of Variable can be changed ,
* " Variable is a named memory Location which holds a value."
Data Types: Data Type is what which tells that which kind of data we are using.
In programming we have different Data Types
- Number
- Character
Number:
- Integer
- Float
- Double
Data Type | Example |
---|---|
Integer | 12,34,45,67 |
Float | Precision upto 6 digits 12.345600 |
Double | Precision upto 8 digits 12.34560000 |
Number:
- Character
- String
Data Type | Example |
---|---|
Character | Characters are with single quotes (' ') 'A','@','9' |
String | Strings are with Double quotes(" ") "Raman","123ABC" |
Keywords
Keywords are reserved world which have their own pre-define meaning. Every Language has it's own KeywordsOperators
Operators | Symbols | Type | Example |
---|---|---|---|
Assignment | = | Unary | a=10 |
Arithmetic | +,-,/,*,% | Binary | a+b a-b a*b a/b a%b |
Relational | >, <, >=, <=, ==, !=(Not Equal) | Binary | It gives Result in Boolen value True/False a>b a<b a>=b a<=b a==b a!=b |
Logical | && (AND), ||(OR), !(Not) | Binary | It gives Result in Boolen value True/False a>b && a>c a>b || a>c a!=b |
Pseudocode
It is a readable description of the program, and sometime used as a steps for program in details.
Terms used in Pseudocode are as follows
To start a Program we use =============> START/BEGIN
To Take input from user we use =============> END/STOP
Comments
Post a Comment
If you have any doubts, Please let me Know