def scan():
while True:
line = input()
args = line.split(" ")
if args[0] == "exit":
break
name ,a,b = args[0],int(args[1]),int(args[2])
print(name,a,b,a/b)
if __name__ == '__main__':
scan()
package com.test;
import java.util.Scanner;
public class Scan {
public static void main(String[] args) {
scan();
}
private static void scan() {
Scanner sc = new Scanner(System.in);
while (true) {
String line = sc.nextLine();
String[] args = line.split(" ");
String name = args[0];
if (name.equals("exit")) {
break;
}
int a = Integer.parseInt(args[1]);
int b = Integer.parseInt(args[2]);
System.out.printf("%s\t%d\t%d\t%.2f\n", name, a, b, (float) a / b);
}
}
}
package main
import "fmt"
func main() {
Scan()
}
func Scan() {
var name string
var a, b int
for {
fmt.Scanf("%s %d %d", &name, &a, &b)
if name == "exit" {
break
}
fmt.Printf("%s\t%d\t%d\t%.3f\n", name, a, b, float32(a)/float32(b))
}
}