Write a program to take one integer number as input, assign its value to another variable with pre and post increment operator and display its value.

Post content:-
  • Algorithm
  • Flowchart
  • C code
  • Output
  • Pdf notes
Algorithm:-
Step 1:- start.
Step 2:- declare the variable a, b, and c.
Step 3:- take the input for variable a.
Step 4:- assign variable b =++a (it is pre increment operator)
Step 5:- assign variable c =a++(it is post increment operator).
Step 6:- print b and c.
Step 7:- end.

Flowchart:-
C code:-
Output:-
Try it yourself:-

Comments

Popular posts from this blog

Develop and execute C Program to Add Two Distances given in kilometer-meter Using Structures.

Develop a c program to find the sum of all elements stored in a given array using a pointer.