- #1
Taylor_1989
- 402
- 14
Hi, guys. For my project this week I have to code a cipher, and I am just getting used to what, what with the code. The problem I am having is that I have assinged my key and instered that into the repeat function but I only get one output of maths and not seven, why is this?
Fortran:
program Jason
implicit none
integer:: j
character*256 :: string, key, i
string='Hello all my name is Jason'
key='maths '
i=repeat(key,7)
write(*,*),iend program jason