본문 바로가기

wasup

검색하기
wasup
프로필사진 wasupup

  • CATEGORY (377)
    • Linux (12)
    • NodeJs (4)
    • DataBase (35)
      • Oracle (0)
      • MySQL (20)
    • IT (241)
      • Java (117)
      • Android (23)
      • Python (16)
      • PHP (1)
      • html, css, script (35)
      • Network (22)
    • IT etc (54)
      • Git (8)
      • 기획 (1)
      • 마케팅 (1)
      • Tip (9)
    • CMS (12)
      • gnu (11)
      • 카페24 (0)
    • 웹표준 (2)
    • Box (8)
      • Portfolio (3)
      • Game (2)
Guestbook
반응형
Notice
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
Link
Archives
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록산술연산자 (1)

wasup

java 산술연산자

산술연산자에서 어려운건 없고 처음 접하는 분들이 약간 물음표를 띄울 수 있는건 '%'나머지 구하기인데 public class Op1 { public static void main(String[] args) { // TODO Auto-generated method stub int a=20, b=10, c=0; c = a+b; System.out.println(c); c = a - b; System.out.println(c); c = a * b; System.out.println(c); c = a/b; System.out.println(c); c = a%b; System.out.println(c); c = 12%5; System.out.println(c); } } a%b = 0, 12%5 = 2로 각 0과 ..

IT/Java 2020. 10. 20. 10:05
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바