Objective: Subtraction program in java.
Code:
class java4
{
public static void main(String args[])
{
int a=12;
int b=5;
int p;
p=a-b;
System.out.println("sub : "+p);
}
}
Output:
Hello, my name is G Krishna. I'm Creating this blog for the students who are beginners.
Learn More →
No comments:
Post a Comment