Professional Documents
Culture Documents
Problem Solving
2
Input Output
Data Computer Solution
Information
11/28/2019
Programming Fundamental-I
For Example
3
Problem: To develop a software that get two numbers, calculate sum and then displays the result on screen.
Abstraction
Sum=A+B
Algorithm
1. Start
2. Input A
3. Input B
4. Sum=A+B
5. Display Sum
6. En
Computer Program (Code)
#include<iostream.h>
void main()
{
int A, B, Sum;
cout<<“Enter the Value of A”;
cin>>A;
cout<<“Enter the Value of B”; Compile
cin>>B; Output
and Run
Sum-A+B;
cout<<“The Sum of A and B is: “<<Sum;
}