Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- Serial.begin(9600);
- }
- void loop()
- {
- Serial.print ("Enter N: ");
- while(!Serial.available());
- int N = Serial.parseInt();
- Serial.println(N);
- Serial.print("Enter R: ");
- while(!Serial.available());
- int R = Serial.parseInt();
- Serial.println(R);
- float F = (float)N / R;
- Serial.print("Result F: ");
- Serial.println(F);
- Serial.println();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement