Lab Practice - Java
Lab Practice - Java
Java Syntax:
https://www.w3schools.com/java/default.asp
Online Compiler:
https://www.onlinegdb.com
Topics:
Var + Operators
Comments
Conditional statements (if else , switch)
Type Casting
Loops (for loop)
Methods + Recursion
Characters + Math Functions
Java program run manually (cmd)
Java Scope
Loops (while, do-while, for-each*)
Break Continue in loop
r = x + y;
System.out.println("Sum: " + r);
r = x - y;
System.out.println("Subtract: " + r);
r = x * y;
System.out.println("Multiply: " + r);
r = x / y;
System.out.println("Quotient : " + r);
r = x % y;
System.out.println("Remainder: " + r);
}
}
}
}
}
}
}
}
y = (int) x;
System.out.println(y);
}
}
return fact;
}
}
printMT(x);
}
do {
n = n / 10;
c++; // c = c + 1;
} while(n != 0);
return c;
}
}