Wishing everyone a Happy Deepavali. Let the festival of lights bring happiness and joy to your lives.
Quote for the day – 14th October 2019
Little sparks of joy with family and friends can uplift a barrel of happiness.
AI Context for the day – 9th October 2019
Java Sip for the day – 8th October 2019
Increment and Decrement operators
public class Incdec {
public static void main(String[] args) {
int a1 = 5;
--a1; //predecrement
int a2 = 10;
++a2; //preincrement
int b1 = 15;
b1--; //postdecrement
int b2 = 20;
b2++; //postincrement
System.out.println(a1);
System.out.println(a2);
System.out.println(b1);
System.out.println(b2);
}
}
OUTPUT
4
11
14
21
Python Post for the day – 7th October 2019
Basic operations
a=10 b=5 add = a+b sub = a-b mul = a*b div = a/b mod = a%b print(add) print(sub) print(mul) print(div) print(mod)
Java Sip for the day – 7th October 2019
Java program to perform basic operations
public class Operator{ public static void main(String[] args) { int a = 10; int b = 5; int add = a+b; int sub = a-b; int mul = a*b; int div = a/b; int mod = a%b; System.out.println(add); System.out.println(sub); System.out.println(mul); System.out.println(div); System.out.println(mod); } }
Python Post for the day – 6th October 2019
Simple Python Program
print('python is big!')
Java Sip for the day – 6th October 2019
Simple Java Program
class Program{ public static void main(String[ ] args){ System.out.println("Java Sip is tasty !"); } }