what is plgorithm? please answer me
Answers
Answer:
Algorithm:-a set of rules that must be followed when solving a particular problem
mark this as brainliest
don't spam this plz!!!!!!!
thanks plz
Hello !!
For you answer this question , we need see it's example :
Create a algorithm for print the first 100 natural numbers.
We have :
#include <stdio.h>
#include <math.h>
int main(void)
{
int u;
for(u = 5; u <= 100 ; u=u+5)
{
printf("%d ", u);
}
return(0);
}
Create a algorithm for print the first 10 multiples of 2.
We have :
#include <stdio.h>
#include <math.h>
int main(void)
{
int k;
for(k = 0; k <=19 ; k=k+2)
{
printf("%d, ", k);
}
return(0);
}
Therefore, we conclude that the algorithm is nothing more than a sequence of rules or patterns established to solve problems.
I hope I have collaborated !