summaryrefslogtreecommitdiff
path: root/checks/181.format
blob: fb0df98b9b76a944a84d4831c246cb377f896a34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnl @ ../doc/m4.texi:6102: Origin of test
dnl @ expected status: 0
dnl @ extra options: 
dnl @ Copyright (C) 2006, 2007, 2008, 2009 Free Software
dnl @ Foundation, Inc.
dnl @ This file is free software; the Free Software Foundation
dnl @ gives unlimited permission to copy and/or distribute it
dnl @ with or without modifications, as long as this notice
dnl @ is preserved.
include(`forloop.m4')
dnl @result{}
forloop(`i', `1', `10', `format(`%6d squared is %10d
', i, eval(i**2))')
dnl @result{}     1 squared is          1
dnl @result{}     2 squared is          4
dnl @result{}     3 squared is          9
dnl @result{}     4 squared is         16
dnl @result{}     5 squared is         25
dnl @result{}     6 squared is         36
dnl @result{}     7 squared is         49
dnl @result{}     8 squared is         64
dnl @result{}     9 squared is         81
dnl @result{}    10 squared is        100
dnl @result{}