before entering into the discussion, we should understand the concept of programming
Here we will learn about flowcharts, pseudocode, algorithm.
ex.for flowchart
ex.for Algorithm - Pseudocode
For example we will create a program about the counting of 1 x +2 = 3,
we will make the Algorithm as follows:
Declare a variable A is integer
Declare a variable B is integer
Declare a variable C is integer
Print "Hello, Welcome!"
Give the value''A''equal to 5
Give the value''B''equal to 10
Sum of A and B, save in C
Print A, change the line
Print B, change the line
Print C, replace row
Declare a variable C is integer
Print "Hello, Welcome!"
Give the value''A''equal to 5
Give the value''B''equal to 10
Sum of A and B, save in C
Print A, change the line
Print B, change the line
Print C, replace row
for Pseudocode :
we will make the Pseudocode as follows:
A -> integer
B -> integer
C -> integer
Print "Hello, Welcome!"
A <- 5
B <- 10
C <- A + B
Print A
Print B
Print C
B -> integer
C -> integer
Print "Hello, Welcome!"
A <- 5
B <- 10
C <- A + B
Print A
Print B
Print C
-------------------------------------------------------------------
/*Program C: */
//function library program c
#include
#include
//function main
int main()
//start
{
//process
int A, B, C;
int A, B, C;
printf(“Hello, Welcome!\n”);
A= 5;B=10;
C=A+B;
printf(“ %d \n”,A);printf(“ %d \n”,B);
printf(“ %d \n”,C);
getch();
return 0;
--------------------------------------------------------