#include <oxstd.h>

main()
{
    decl c, i, d, m;

    c = scan("Enter an integer: %d", &i,
             "Enter a double:   %f", &d);
    print("items read=", c, " int=", i, " dbl=", d, "\n");

    c = scan("Enter a 2 x 2 matrix: %#m", 2, 2, &m);
    print("items read=", c, " mat=", m);

    c = scan("Enter a matrix with dimensions: %m", &m);
    print("items read=", c, " mat=", m);
}
