File: 185.format

package info (click to toggle)
m4 1.4.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,912 kB
  • sloc: ansic: 141,792; sh: 15,054; cpp: 2,283; lisp: 243; makefile: 169; sed: 16
file content (24 lines) | stat: -rw-r--r-- 917 bytes parent folder | download
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:6251: 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{}