write the algorithm to print first 10 numbers in decending order
Answers
Answered by
4
In c++ it goes like this:-
void main ()
{
for (int i=10; i>0; i--)
{
cout <<i <<"\n";
}
}
this loop will print the numbers 0 to 10 in decsending order.
Answered by
5
Question :
Write the algorithm to print first 10 numbers in descending order.
Answer :
Let us know first :
Algorithm :
Set of rules to obtain the expected output from the given output.
A computer is a detailed step by step method for solving a problem via computer.
The algorithm to print first 10 numbers in decending order :
Void main ()
{
...//coding
}
But it is like
Void main ()
{
...//coding
}
Note :
This loop is in c++
Similar questions