D that’s the answer I learn that in my old school
Answer:
//Here is the for loop in C.
for(n=10;n>0;n--)
{
printf("count =%d \n",n);
}
Explanation:
Since C is a procedural programming language.Here if a loop that starts with n=10; It will run till n becomes 0. When n reaches to 0 then loop terminates otherwise it print the count of n.
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{ // variables
int n;
// for loop that runs 10 times
// when n==0 then loop terminates
for(n=10;n>0;n--)
{
cout<<"count ="<<n<<endl;
}
return 0;
}
Output:
count =10
count =9
count =8
count =7
count =6
count =5
count =4
count =3
count =2
count =1
Answer:
class Program {
public static void Main (string[] args) {
double number = 1.0;
while(number >= 0.001) {
Console.WriteLine (number);
number /= 2;
}
}
}
Explanation:
Always think carefully about what is in the condition of the while statement. In this case, you want the loop to be executed as long as the number is larger than or equal to 0.001.
Answer:
network 10.10.8.0 0.0.3.255 area 0
this will include all the interfaces on a device whose IP addresses only begin with a 10.10.8, 10.10.9, 10.10.10, or 10.10.11.
Explanation:
<em>show ip ospf interface
</em>
<em>show ip ospf interface brief</em>
these commands are used to display the interfaces that have been enabled into local ospf . it also shows explanation about them by brief command mentioned above.
<em />