//산술연산자
class Test02 { // public class Test02 {
public static void main(String[] args) {
System.out.println(5/2);
System.out.println(5./2);
System.out.println(5/2.);
System.out.println(5%2);
System.out.println(2%5);
// int i;
// int j;
int i,j;
i=5;
i++; //후위형
System.out.println(i);
i=5;
++i; //전위형
System.out.println(i);
i=5;
j=i++; //= (j=i; i=i+1) //후위형
System.out.println(i);
System.out.println(j);
i=5;
j=++i; //= (i=i+1; j=i) //전위형
System.out.println(i);
System.out.println(j);
i=5;
System.out.println(++i); //전위형
System.out.println(i);
i=5;
System.out.println(i++); //후위형
System.out.println(i);
//논리 연산자
System.out.println(10==20);
System.out.println(10<20);
System.out.println(10>=20);
System.out.println(10!=20);
//관계 연산자
int a =18;
float b =(float)20.5;
System.out.println(a>b);
System.out.println(a<b); // c 는 관계연산자간 변수의 타입이 동일해야한다.
}
}
element
| Font | |
|---|---|
| font-family | |
| font-size | |
| font-style | |
| font-variant | |
| font-weight | |
| letter-spacing | |
| line-height | |
| text-decoration | |
| text-align | |
| text-indent | |
| text-transform | |
| white-space | |
| word-spacing | |
| color | |
| Background | |
| bg-attachment | |
| bg-color | |
| bg-image | |
| bg-position | |
| bg-repeat | |
| Box | |
| width | |
| height | |
| border-top | |
| border-right | |
| border-bottom | |
| border-left | |
| margin | |
| padding | |
| max-height | |
| min-height | |
| max-width | |
| min-width | |
| outline-color | |
| outline-style | |
| outline-width | |
| Positioning | |
| position | |
| top | |
| bottom | |
| right | |
| left | |
| float | |
| display | |
| clear | |
| z-index | |
| List | |
| list-style-image | |
| list-style-type | |
| list-style-position | |
| Table | |
| vertical-align | |
| border-collapse | |
| border-spacing | |
| caption-side | |
| empty-cells | |
| table-layout | |
| Effects | |
| text-shadow | |
| -webkit-box-shadow | |
| border-radius | |
| Other | |
| overflow | |
| cursor | |
| visibility |
