Computer Science, asked by Anonymous, 1 year ago

WRITE JAVA PROGRAMS FOR THE FOLLOWING.

Attachments:

Answers

Answered by Superhacks
1
1.
public class subtract
{//opens the class
public static void main(String args[])
{//opens the main method
int a=4;
int b=2;
int c=a-b;
System.out.println(c);
} //closes the main method
} //closes the class

Superhacks: This is to subtract 2 numbers
Anonymous: and the other
Similar questions