Q1.
Application to input a number and display its reverse (using do…while loop)
private void clearActionPerformed([Link] evt) {
[Link] ("");
[Link] ("");// TODO add your handling code here:
}
private void exitActionPerformed([Link] evt) {
[Link](0);
// TODO add your handling code here:
}
private void mirrorimageActionPerformed([Link] evt) {
int a = [Link] ([Link] ());
int b = a; int d=0;
do {
int c = a%10;
d=d*10+c;
a = a/10;
}while(a!=0);
[Link] ("Mirror Image Of " + b + " is " + d);