Write a program to add two integer numbers.

In this program, we will take two integer numbers from the user as an input and add them.

This Post content:-
  • Algorithm
  • Flowchart
  • C code
  • Output
  • Pdf notes

Algorithm:-

Step 1:-start. 
Step 2:-declare variables a, b, c. 
Step 3:-read values a and b. 
Step 4:-add given variables as
c = a + b
Step 5:-print c. 
Step 6:-stop. 


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

  • algorithm
  • flowchart 
  • c code.











 

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.