You are not logged in.
login | register

Discussion: All Topics
Topic: modular arithmetic
Related Item: http://mathforum.org/mathtools/tool/204/


Post a new topic to the support: Clocks and Modular Arithmetic Dialogue discussion
<< see all messages in this topic


Subject:   modular arithmetic
Author: jhumestly
Date: Feb 15 2009
i'm a student of information technology.. below is my program ,, it run but i
think my algorithm is not perfect for my program.. can you help me???
----------------------------------------
-----------------------------

import javax.swing.*;

public class Modulo1{

public static void main(String[] args){

int mod=10;
int ctr;

//Inputs
for(int i=0;i>mod;i++);
Integer.parseInt(JOptionPane.showInputDialog(null , "input"));
Integer.parseInt(JOptionPane.showInputDialog(null , "input2"));

//Printing the output
JOptionPane.showMessageDialog(null, mod);
}
}

Reply to this message          Quote this message when replying?
yes  no
Post a new topic to the support: Clocks and Modular Arithmetic Dialogue discussion
Visit related discussions:
Clocks and Modular Arithmetic Dialogue support

Discussion Help