Skip to main content

Programming Basics

Logic Building




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
  1. Number
  2. Character

Number:

  1. Integer
  2. Float
  3. Double
Data Type Example
Integer 12,34,45,67
Float Precision upto 6 digits
12.345600
Double Precision upto 8 digits
12.34560000

Number:

  1. Character
  2. 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 Keywords

Operators

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

Popular posts from this blog

FAQs

Basic Questions on Programming Languages 1. What is the meaning of Programming? Ans: Programming is the process of Scheduling the task to perform step by step to Execute a specific Task. 2. Types of Programming Languages? Ans: Types:             Procedural Programming Language            Object Oriented Programming Language            Object Based Language            Scripting Language Procedural Programming Language   C Programming  Object Oriented Programming Language     C++     Java     C#     VB.Net Object Based Language     JavaScript Scripting Language     Python     VBScript     PHP     Perl     Ruby     R 3. Types Of Operators in Programming Languages. Ans:      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 Resul