# 算术运算符

&nbs

### HTML Tags and JavaScript tutorial

#### 算术运算符

import java.awt.*;
import java.applet.Applet;

public class ArithmeticOperation extends Applet
{
int i_x=1;
int i_y=2;
double d_x=3.1415926;
double d_y=2.41;

public void paint(Graphics g)
{
g.drawString(i_x+"+"+i_y+"="+(i_x+i_y),10,20);           //10 ,20分别表示蘅众坐标位子
g.drawString(i_x+"-"+i_y+"="+(i_x-i_y),10,40);
g.drawString(i_x+"*"+i_y+"="+(i_x*i_y),10,60);
g.drawString(i_x+"/"+i_y+"="+(i_x/i_y),10,80);
g.drawString(i_x+"%"+i_y+"="+(i_x%i_y),10,100);
g.drawString(d_x+"+"+d_y+"="+(d_x+d_y),10,140);
g.drawString(d_x+"-"+d_y+"="+(d_x-d_y),10,160);
g.drawString(d_x+"*"+d_y+"="+(d_x*d_y),10,180);
g.drawString(d_x+"/"+d_y+"="+(d_x/d_y),10,200);
g.drawString(d_x+"%"+d_y+"="+(d_x%d_y),10,220);

/
code=ArithmeticOperation
<html>
<body>
<hr>
<applet code=ArithmeticOperation
width=510   height=200>
</applet>
</body>
</html>

可得结果

p;

#### 8.4.1：算术运算符

2013-11-10 15:01:13

#### 05-算术运算符

2015-07-27 09:10:37

#### 运算符之：2、算术运算符（7个）

2017-11-05 00:14:41

#### 算术运算符的运算

2012-11-16 21:38:22

#### 5 算术运算符和比较运算符

2017-07-05 09:09:47

#### 算术运算符、赋值运算符、比较运算符

2016-09-21 16:13:07

#### C语言基础学习运算符-基本算术运算符

2016-09-11 09:49:39

#### C语言算术运算符

2017-12-10 16:04:55

#### Java语言基础算术运算符的基本用法

2017-01-23 10:32:06

#### 优先级顺序：！>算术运算符>比较运算符>&&>||

2017-06-13 10:14:00