Giter Club home page Giter Club logo

exercise_04's Introduction

Exercise_04

자바의 정석 개정 3판 연습문제 04

4.2)1부터 20까지의 정수 중에서 2또는 3의 배수가 아닌 수의 총합을 구하시오.
4.3)1+(1+2)+(1+2+3)+(1+2+3+4)+...+(1+2+...+10)
4.4)1+(-2)+3+(-4+)+...과 같은식으로 더해나갔을 때, 몇까지 더해야 총합이 100이상이 되는지
4.5)for문 while문으로 바꾸기
4.6)두 개의 주사위를 던졌을 때, 눈의 합이 6이 되는 모든 경우의 수를 출력하는 프로그램
4.7)Math.random() 이용하기
4.8)방정식 2x+4y=10의 모든 해를 구하시오. 단 x와y는 정수이고 각각의 범위는 0<=x<=10, 0<=y<=10 이다.
4.9)숫자로 이루어진 문자열 str이 있을 때, 각 자리의 합을 더한 결과를 출력하는 코드를 완성하여라. 만일 문자열이 "12345"라면, 1+2+3+4+5의 결과인 15를 출력되어야 한다.

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.