Write a Java program that works as a simple calculator. Use a grid layout to arrange buttons for the digits and for the + – * % operations. Add a text field to display the result.
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
/*<applet code="Cal" width=300 height=300></applet>*/
No comments
Post a Comment