Giter Club home page Giter Club logo

Comments (15)

diegoparra avatar diegoparra commented on August 22, 2024

https://play.golang.org/p/-UKWtiqnWl4

from aprendago.

andersoncleyson avatar andersoncleyson commented on August 22, 2024

https://play.golang.org/p/JMHPXv5tLB0

from aprendago.

thiagoalgo avatar thiagoalgo commented on August 22, 2024

https://play.golang.org/p/NyUx_lG92oS

from aprendago.

viniciussanchez avatar viniciussanchez commented on August 22, 2024

https://play.golang.org/p/XscNO_Rsh1g

from aprendago.

tomxdev avatar tomxdev commented on August 22, 2024
package main

import "fmt"

func main() {

	for i := 10; i <= 100;  i++{
		resp := i % 4
		fmt.Println(resp)
	}
}

from aprendago.

an4kein avatar an4kein commented on August 22, 2024

Tbm percebi um determinado padrao :)

https://play.golang.org/p/gW7FnsCQvUr

ref:

from aprendago.

ygorsimoes avatar ygorsimoes commented on August 22, 2024
package main

import "fmt"

func main() {

	// Loop que começa em 10 e termina em 100
	for i := 10; i <= 100; i++ {

		// Imprime o resto da divisão por 4
		fmt.Println(i % 4)
	}
}

Output:

2
3
0
1
2
3
0
1
...
3
0
1
2
3
0
1
2
3
0

from aprendago.

JPauloMoura avatar JPauloMoura commented on August 22, 2024
package main

//Demonstre o resto da divisão por 4 de todos os números entre 10 e 100
import "fmt"

func main() {
	for inicio := 10; inicio <= 100; inicio++ {
		fmt.Printf("%d/4 resta: %v\n", inicio, (inicio % 4))
	}
}

Resolução do Exercício

from aprendago.

Lucasmirandar avatar Lucasmirandar commented on August 22, 2024

package main

import "fmt"

func main() {
for x := 10; x <= 100; x++ {
fmt.Println(x % 4)
}
}

from aprendago.

andersoncleyson avatar andersoncleyson commented on August 22, 2024
package main

import "fmt"

func main(){
	for i := 10; i <= 100; i++{
		x := i % 4
		fmt.Printf("%d\n", x)
	}
}

from aprendago.

CarlosSMA avatar CarlosSMA commented on August 22, 2024
package main

import (
	"fmt"
)

func main() {
	for i := 10; i <= 100; i++ {
		resto := i % 4
		fmt.Println("O resto de", i, "por 4 é", resto)
	}
}

Saída

O resto de 10 por 4 é 2
O resto de 11 por 4 é 3
O resto de 12 por 4 é 0
O resto de 13 por 4 é 1
O resto de 14 por 4 é 2
[...]

from aprendago.

CaueFarias avatar CaueFarias commented on August 22, 2024

https://go.dev/play/p/HnHu1x4k3Vj

from aprendago.

wfrsilva avatar wfrsilva commented on August 22, 2024

https://go.dev/play/p/KQ5qhufw9cJ

image

from aprendago.

M3L1M avatar M3L1M commented on August 22, 2024

for i := 10; i <= 100; i++ {
fmt.Println(i % 4)
}

from aprendago.

adelsonsljunior avatar adelsonsljunior commented on August 22, 2024
package main

import (
	"fmt"
)

func main() {

	for i := 10; i <= 100; i++ {
		resto := i % 4
		fmt.Println(resto)
	}
}

from aprendago.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.