From 80c0a47f4f78bec2921fa64c0aaa098b7167fe04 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Sun, 31 Jul 2005 21:38:32 +0000 Subject: [PATCH] Convert to mdoc. --- games/arithmetic/arithmetic.6 | 80 ++++++++++++++++++----------------- 1 file changed, 42 insertions(+), 38 deletions(-) diff --git a/games/arithmetic/arithmetic.6 b/games/arithmetic/arithmetic.6 index 541b9e7500..c0fc1317e0 100644 --- a/games/arithmetic/arithmetic.6 +++ b/games/arithmetic/arithmetic.6 @@ -34,72 +34,76 @@ .\" .\" @(#)arithmetic.6 8.1 (Berkeley) 5/31/93 .\" $FreeBSD: src/games/arithmetic/arithmetic.6,v 1.3 1999/08/27 23:28:52 peter Exp $ -.\" $DragonFly: src/games/arithmetic/arithmetic.6,v 1.2 2003/06/17 04:25:22 dillon Exp $ +.\" $DragonFly: src/games/arithmetic/arithmetic.6,v 1.3 2005/07/31 21:38:32 swildner Exp $ .\" -.TH ARITHMETIC 6 "May 31, 1993" -.UC 4 -.SH NAME -arithmetic \- quiz on simple arithmetic -.SH SYNOPSIS -.B arithmetic -.B [ -\-o +\-x/ -.B ] -.B [ -\-r range -.B ] -.SH DESCRIPTION -.I Arithmetic +.Dd May 31, 1993 +.Dt ARITHMETIC 6 +.Os +.Sh NAME +.Nm arithmetic +.Nd quiz on simple arithmetic +.Sh SYNOPSIS +.Nm +.Op Fl o Ar +-x/ +.Op Fl r Ar range +.Sh DESCRIPTION +.Nm asks you to solve problems in simple arithmetic. Each question must be answered correctly before going on to the next. After every 20 problems, it prints the score so far and the time taken. You can quit at any time by typing the interrupt or end-of-file character. -.PP +.Pp The options are as follows: -.TP -\-o +.Bl -tag -width ".Fl r Ar range" +.It Fl o Ar +-x/ By default, -.I arithmetic +.Nm asks questions on addition of numbers from 0 to 10, and corresponding subtraction. By supplying one or more of the characters -.BR +\-x/ , +.Ar +-x/ , you can ask for problems in addition, subtraction, multiplication, and division, respectively. If you give one of these characters more than once, that kind of problem will be asked correspondingly more often. -.TP -\-r +.It Fl r Ar range If a -.I range +.Ar range is supplied, -.I arithmetic +.Nm selects the numbers in its problems in the following way. For addition and multiplication, the numbers to be added or multiplied are between 0 and -.IR range , +.Ar range , inclusive. For subtraction and division, both the required result and the number to divide by or subtract will be between 0 and -.IR range . +.Ar range . (Of course, -.I arithmetic +.Nm will not ask you to divide by 0.) The default -.I range +.Ar range is 10. -.PP +.El +.Pp When you get a problem wrong, -.I arithmetic +.Nm will remember the numbers involved, and will tend to select those numbers more often than others, in problems of the same sort. Eventually it will forgive and forget. -.PP -.I Arithmetic +.Pp +.Nm cannot be persuaded to tell you the right answer. You must work it out for yourself. -.SH DIAGNOSTICS -``What?'' if you get a question wrong. -``Right!'' if you get it right. -``Please type a number.'' if arithmetic doesn't understand what you typed. -.SH "SEE ALSO" -bc(1), dc(1) +.Sh DIAGNOSTICS +.Bl -diag +.It "What?" +if you get a question wrong. +.It "Right!" +if you get it right. +.It "Please type a number." +if arithmetic doesn't understand what you typed. +.El +.Sh SEE ALSO +.Xr bc 1 , +.Xr dc 1 -- 2.41.0