var previsto = [];
for(var i = 0; i < $(".previsto").length ; i++)
{
previsto[i] = $(".previsto").eq(i).text();
}
I need to get the next value adding the former to have a build-up.
I have the following Ruby codes in three different files. Follow them:
programa.rb
require_relative "product"
require_relative "store"
cd = Product.new("CD",20.5)
pinico = Product.new("Pinico",30.6)
store = [cd,pinico]
test = Store.new(...
I have a list of images where I'm using grid to organize them, getting the exact amount I need for lines.
With this I looped to control the grids and I also have the loop of the images.
Question: What could you do to fix why grids and images a...
How can I make the interpreter understand what the previous value of a mathematical function is, for example: "Xn = 3.7 (xn-1)" where "n-1" means the result of the previous operation of the loop. Hard to understand but this is nothing less than...
I would like to save these 9 lines repeated in my code:
for (int n1 = 1, n2 = 1; n2 < 11;){
Console.Write(n1 + "x" + n2 + "=" + (n1 * n2) + "\t"); n1++;//1
Console.Write(n1 + "x" + n2 + "=" + (n1 * n2) + "\t"); n1++;//2
Console....
This loop is always repeating the last value, consider the following:
type unique struct {
id, nonce uint64
}
func (unique *unique) print() {
fmt.Println(unique.id)
}
func main() {
teste := []unique{unique{1, 2}, unique{3, 4...
I already know the while , repeat and for ties, but when I was looking at the types of loops, in the section I found the "Loop for generic" section. The text was in English.
#! /usr/bin/python3
valor = int(input("Digite o valor a pagar: "))
cedulas = 0
atual = 50
apagar = valor
while True:
if atual <= apagar:
apagar = apagar - atual
cedulas += 1
else:
print("%d cedula(s) de R$%d"...
I have a script that traverses a directory looking for video files in it and then I use shell_exec with ffmpeg to convert it, the problem is that my site is falling during script execution, after starting even on the server, the si...