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
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:-
Comments
Post a Comment