Слайд 2
![Algorithm An algorithm is a procedure used for solving a](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/598692/slide-1.jpg)
Algorithm
An algorithm is a procedure used for solving a problem or
performing a computation. Algorithms act as an exact list of instructions that conduct specified actions step by step in either hardware- or software-based routines.
Слайд 3
![Cin – c input Cout – c output](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/598692/slide-2.jpg)
Cin – c input
Cout – c output
Слайд 4
![#include using namespace std; int main() { float a,b,c; a](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/598692/slide-3.jpg)
#include
using namespace std;
int main() {
float a,b,c;
a
= 10;
b= 20;
c = a *b;
cout< return 0;}
Слайд 5
![#include using namespace std; int main() { float a,b,c; cout cin>>a>>b; c=a-b; cout return 0; }](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/598692/slide-4.jpg)
#include
using namespace std;
int main() {
float a,b,c;
cout<< “enter
the value for a and b”;
cin>>a>>b;
c=a-b;
cout< return 0;
}
Слайд 6
![#include using namespace std; int main() { int a,b; a=10;](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/598692/slide-5.jpg)
#include
using namespace std;
int main() {
int a,b;
a=10; b= 13;
if(a{
cout<<“a is less than b”;}
if (a>b)
{ cout<<“a is greater than b”; }
if (a<=b)
{ cout << “a is less than or equal to b” ; }
if (a>=b)
{ cout<< “a is greater than or equal to b”; }
if (a==b)
{ cout<<“a is equal to b”; }
if (a!=b)
{ cout << “a is not equal to b”;}
}