# Why the println line is multiplaying?

**URL:** <https://discourse.julialang.org/t/why-the-println-line-is-multiplaying/25072>\
**Category:** General Usage\
**Created:** [June 8, 2019, 10:03am UTC](https://discourse.julialang.org/t/why-the-println-line-is-multiplaying/25072 "2019-06-08T10:03:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![programista](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/programista/32/5372_2.png) [@programista](https://discourse.julialang.org/u/programista)\
**Post date:** [June 8, 2019, 10:03am UTC](https://discourse.julialang.org/t/why-the-println-line-is-multiplaying/25072/1 "2019-06-08T10:03:58Z")

</div>

Julia display 3 times the same lines. Why ? What wrong?

```julia
zgoda='o'
while (!(zgoda=='y' || zgoda=='n' || zgoda=='Y' || zgoda=='N'));
println("Reported missings? enter 'y' or 'n' end press ENTER");
global zgoda=read(stdin,Char);
	if (zgoda=='y' || zgoda=='Y') 
	println("missings will be reported"); global missing_reported=true;
	elseif (zgoda=='n' || zgoda=='N') 
	println("missings will not be reported"); global missing_reported=false;
	else println("Wrong letter. Enter 'y' or 'n' end press ENTER");
	end
end

Reported missings? enter 'y' or 'n' end press ENTER
u
Wrong letter. Enter 'y' or 'n' end press ENTER
Reported missings? enter 'y' or 'n' end press ENTER
Wrong letter. Enter 'y' or 'n' end press ENTER
Reported missings? enter 'y' or 'n' end press ENTER
Wrong letter. Enter 'y' or 'n' end press ENTER
Reported missings? enter 'y' or 'n' end press ENTER
u
Wrong letter. Enter 'y' or 'n' end press ENTER
Reported missings? enter 'y' or 'n' end press ENTER
Wrong letter. Enter 'y' or 'n' end press ENTER
Reported missings? enter 'y' or 'n' end press ENTER
Wrong letter. Enter 'y' or 'n' end press ENTER
Reported missings? enter 'y' or 'n' end press ENTER

```

---

<div class="post-metadata">

**Author:** ![StevenSiew](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevensiew/32/218393_2.png) [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Post date:** [June 8, 2019, 10:46am UTC](https://discourse.julialang.org/t/why-the-println-line-is-multiplaying/25072/2 "2019-06-08T10:46:41Z")

</div>

Because you are reading in 3 characters

1. u
2. \r “carriage return”
3. \n “newline”

Regards
