home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.fortran
- Path: sparky!uunet!ukma!wupost!sdd.hp.com!hp-col!hpfcnfs.sde.hp.com!pld
- From: pld@fc.hp.com (Paul_Dineen)
- Subject: Re: Print characters on one line without newline...???
- Message-ID: <BxtyrF.Fx3@fc.sde.hp.com>
- Sender: news@fc.sde.hp.com (Notes Administrator)
- Organization: HP CLO/CoLL, Fort Collins, CO
- X-Newsreader: TIN [version 1.1.4 PL6]
- References: <BxtnK6.23s@cs.uiuc.edu>
- Date: Mon, 16 Nov 1992 22:35:38 GMT
- Lines: 18
-
- Conrad W Taylor (ctaylor@cs.uiuc.edu) wrote:
- : I'm writting this PrintX routine that is to print
- : the letter X n times on one line without any spaces and
- : newline.
-
- On an HP9000:
-
- accept *, n
- write(*,'(A,$)') ('X',i=1,n)
- end
-
- pld@hpfcpld:/users/pld/temp/
- > a.out
- 47
- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXpld@hpfcpld:/users/pld/temp/
-
- where the above line has no CR at the end (the pld... is my prompt).
- Reminder: '$' is not an F77 standard feature.
-