Dima
why won’t you try
Григорий
I want logic
Try to check whether the input number is positive, negative or zero using "if... else if... else..." statements.
Dima
show us your code and point to your prob
Mr
If i input -0 then output zero only
Mr
I want negative zero
Morasaky
just multiply the numbers with (-1)
Zero
Zero
Here
Dima
negative zero and positive zero, you won’t believe, is the same number
Dima
Morasaky
Григорий
Yes, programm does not use -0 number. When you input -0, the programm reads it as just 0. Because actually -0 does not exist and is being used only in math in particular cases.
Morasaky
yeah u are right
Григорий
I want negative zero
However you can read the input as string to check whether there is the sign "-".
Morasaky
u can use here the if statment and say if the inbut is zero read it as string and then add the "-" to it
Marie
Welcome Varsha! Please read the pinned message 🙂
Anonymous
Hi guys.
Anonymous
How are you?
Anonymous
Do your speak with me Russian?
Anonymous
I can speak English, but small.
AbdumajiD
Yes i kan
AbdumajiD
Can
Anonymous
Привет.
AbdumajiD
Как дела
Anonymous
Слушай Где модно скачать Новую версию Android Studio? Со всеми Андроид версиями?
AbdumajiD
А где ты живешь
Anonymous
Узбекистан. Ташкент.
olli
English only, read the rules please
AbdumajiD
А ты
AbdumajiD
Узбекский знаеш
AbdumajiD
Ok i am sorry
Григорий
U mean substr..?
NoYes, at first read as string, then search there the substring "-".
AbdumajiD
You go to malika
AbdumajiD
😙
AbdumajiD
You go to malika
There you can what you want
AbdumajiD
Understand
Dima
lol try it yourself
Dima
there are A LOT of tutorials
Григорий
Can u code...
Yes, but shall not.
Mat
My sir given one task to me...
Sir detected Sort of homework detected
Mat
Can u code...
Are you asking us to do your assignment?
Dima
just like my friend said “wtffff happened to coderzzszs”
Dima
yeah yeah js coder starter pack
Dima
well it was mainstream in the 80s too
Dima
BASIC
Mr
Sir detected Sort of homework detected
Not homework Sir said try to findout logic
Dima
lol it IS the assignment
Mat
Stop. That. Damn. Sir. Thing.
Dima
whatever, but man, try to do it yourself, it’s really easy
Mat
Its task
What's the difference?
Mat
You didn't even try it
Anonymous
I hv a small doubt
klimi
Ok
Anonymous
Hw to display a string in Pyramid pattern
klimi
Um
klimi
For loop
Anonymous
For loop
I cant print space correctly
Anonymous
For loop
I cant print space correctly
klimi
std::cout<< ' ';
Anonymous
Wait a min i will send u the Programme
Dima
lol
Dima
can’t even print space these days
Dima
Dima
nah I am just kidding
klimi
Oh
klimi
Kawaiii
Marie
Prabakaran has 1/3 warnings... watch out! Reason for last warn: promo