So here is the code in Python:
n = 0.00 #this is a float because there are some numbers that are decimals.
while n < 20: #n which is 0.00 and while it is lower than 20 if runs the code below
n = n + 1 #it will add 1 to n everything it runs the code.
k = n / 2 #it will divide whatever n is everytime by 2
print(str(n) + '/2: ') # it's printing the number it's on
print(k) # prints the answer for the n.
You can change n to add by any, make n any num instead of 0.00 and you can change the while condition from n < 20 to any other logical statement. If you want to get creative you can take 2 inputs for numbers and make one of them the starting number and other one is the ending number. Also make sure to make n a number lower than you starting point because if you set n as your starting point then it will skip it.
Jiskha help me with something similar with
Answer:
c.Update DNS records dynamically for DHCP clients that don't request updates.
Explanation:
A DNS server is a computer server that contains a database of public IP addresses and their associated host names, and in most cases serves to resolve, or translate, those names to IP addresses as requested.
A DHCP Server is a network server that automatically provides and assigns IP addresses, default gateways and other network parameters to client devices.
Dynamic DNS is a method of automatically updating a name server in the Domain Name Server, often in real time.
Test.java
The classname and the filename need to match (case sensitive).
Answer:
Three ways to increase the value of variable are given below. To eleborate the answer, I am taking a variable x that need to be increase.
- x=x+1
- x++
- x+=1
Explanation:
There are three ways to increase the value of variable.
1. x= x+1
In this case, each time value of x (variable) is incremented and stored in that variable. This equation increase the value of x by 1 each time. For Example
if x=1
then in first iteration
x= x+1 = 2;
If we want to increase the value of x by more than 1, we can add that value with x, as x+2, x+3 and so on.
2. x++
This will increment the value of x by 1. If we use this equation multiple time in program, each time it will increase 1 in value of x.
3. x+=1
This also works same as equation 1. It will increment 1 in this form and can be changed with 2, 3 and so on.