Practice #9
Sequence Structure
#include<iostream>
using namespace std;
int main (){
// Here we discuss about basic control structures
/*
There are three basic control structures in CPP
1. Sequence Structure
2. Selection Structure
3. Loop Structure
*/
/* The sequence sutructure we detailed discustion in
previous practices. here is example:
*/
// Sequence Structure
int num1, num2;
cout<<"Enter the Value of Number 1 = \n";
cin>>num1;
cout<<"Enter the Value of Number 2 = \n";
cin>>num2;
int sum=num1+num2;
cout<<"The Total SUM is : "<<sum;
return 0;
}

Comments
Post a Comment