soccer jersey forums.silverfrost.com :: View topic - Lsiting question
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Lsiting question

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Zach



Joined: 13 Mar 2023
Posts: 85
Location: Groningen, Netherlands

PostPosted: Sat May 13, 2023 10:35 pm    Post subject: Lsiting question Reply with quote

The objective is to list strings 40 characters wide
The skip back up isn't working. Please help.

program test
character(200) :: strIn
integer::single_character

strIn= 'the kat kissed the dog and ate his banana. The banana was too big for its mouth so it had to sneeze. '

do i = 1, len(strIn), 1
single_character = ichar(strIn(i:i))
write(*,*) achar(single_character)
if (i < 40) print *, achar(43)!skip back up

end do
end program
Back to top
View user's profile Send private message Send e-mail
mecej4



Joined: 31 Oct 2006
Posts: 1896

PostPosted: Sun May 14, 2023 2:37 am    Post subject: Reply with quote

Duplicate of post http://forums.silverfrost.com/viewtopic.php?t=4792 by same poster.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group