Al Salam 3likm dear sisters and brothers,
Here is a sample code for the Multiplication table applet we discussed at the beginning of the term
To be continued.......
source .... here
Here is a sample code for the Multiplication table applet we discussed at the beginning of the term
- الكود:
import java.applet.*;
import java.awt.*;
public class Multiply extends Applet
{
String line;
public void paint(Graphics g)
{
for(int j=0; j<10;j++)
{
for(int i=1;i<10;i++)
{
line =j+"x"+i+"="+i*j;
g.drawString(line,(j%5)*60,(120*(int)(j/5))+i*11);
}
}
}
}
To be continued.......
source .... here