What Is theOutput of this code. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 4

What Is theOutput of this code.

i=0 x=0 while i<4: x+=i i+=1 print(x)

27th May 2021, 2:13 AM
Vìñøď Ťãřąk
Vìñøď Ťãřąk - avatar
10 ответов
+ 6
U will get an error as an output, because this code isnt working 🧐😐
28th May 2021, 1:11 PM
Slothy 🦥
Slothy 🦥 - avatar
+ 5
Vìñøď Ťãřąk Syntax error
27th May 2021, 2:16 AM
A͢J
A͢J - avatar
+ 4
The code gives indentation error because you are missing indentation after while okk: Here Correct code is x=0 j=0 while(x<4): j+=x x+=1 print(j) The output of the code is: 6
28th May 2021, 3:14 PM
A J
A J - avatar
+ 2
What is the language for this code? https://www.sololearn.com/discuss/1316935/?ref=app
27th May 2021, 2:20 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
what will happen if you try to open a file which does not exist in append mode in c programming
28th May 2021, 7:57 AM
Anitha
Anitha - avatar
+ 1
Write a C ++ program that computes and returns: • the smallest positive integer (n) for which 1 + 2 + 3 + ... + n equals or exceeds your goal value. their (sum). For example, if the goal has the value 9, then the function will return 4 because 1+2+3+4 >= 9 and will return 10. Another example, if the goal has the value 25, then the function will return 7 because 1+2+3+4+5+6+7 >= 25 and will return 28. Note: use void function, and return (n) and (sum) using call by reference. Help...
28th May 2021, 6:57 PM
Habosha Al_krady
Habosha Al_krady - avatar
0
6
27th May 2021, 7:12 PM
Kiran Damodhar
Kiran Damodhar - avatar
0
Syntax error. Your indentation are wrong.
28th May 2021, 8:57 PM
G.M.K.L. Wickramasinghe
G.M.K.L. Wickramasinghe - avatar
- 1
Mostly 1 3 6 Or direct 6 depends on the indentation
27th May 2021, 4:11 AM
Eashan Morajkar
Eashan Morajkar - avatar
- 2
Anitha it will create the file
28th May 2021, 8:26 AM
Eashan Morajkar
Eashan Morajkar - avatar