Variable & DataTypes

 avatar
Mystic
java
a month ago
407 B
1
Indexable
import java.util.Scanner;

public class javaBasic {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
            byte b=4;
            char c='c';
            short s=512;
            int i=1000;        
            float f=3.14f;
            double d=99.9954;

      double result= (f*b)+(i%c)-(d*s);
        System.out.println(result);
    }
}

Editor is loading...
Leave a Comment