Code Monkey home page Code Monkey logo

js-fizzbuzz's Introduction

Consegna: Scrivi un programma che stampi in console i numeri da 1 a 100, ma che per i multipli di 3 stampi "Fizz" al posto del numero e per i multipli di 5 stampi "Buzz". Per i numeri che sono sia multipli di 3 che di 5 stampi "FizzBuzz".

Svolgimento

  1. devo stampare FRIZZ se i numeri sono multipi di 3
  2. devo stampare BUZZ se i numeri sono multipi di 5
  3. devo stampare FRIZZBUZZ se i numeri sono multipi di 15
  4. devo stampare IL NUMERO se i numeri NON sono multipi di 3 e di 5

Nel codice parto a stampare dal 15, se non è multiplo di 15, mi spampa il 5, se non è multilpo di 5, mi stampa 3, se non è nemmeno multiplo di 3 allora mi stampa il numero.

js-fizzbuzz's People

Contributors

bonvi83 avatar

Watchers

 avatar

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.