Kursy
Kursy
Kompilator kodu
Kompilator kodu
Dyskusja
Cennik
Zespoły
Zaloguj się
Zarejestruj się
Menu
Dyskusje Q&A
Szukaj
Szukaj
Zadaj pytanie
Zadaj pytanie
Sum of even number if (i%2=0) showing i=1 error
java
1 Głos
2 odpowiedzi
13th Oct 2019, 2:26 PM
Ramya
N=int(input('Enter number')) sum = 0 i=1 while i<=N: sum=sum+i i=i+2 print(sum)
python
0 głosów
1 Odpowiedź
4th Oct 2018, 8:24 AM
Nick Fiction
What is the difference between i=1 and i==1 and What does i+=1 means
loops
3 głosów
3 odpowiedzi
1st Sep 2020, 6:57 PM
Henok
Опять с задачей Абрамова . Если что задача 100 . Нужно посчитать E(сумма) сверху 100 снизу i=1 условие x(с индексом)/2^i при
abramov
c++
1 Głos
3 odpowiedzi
15th Jan 2020, 8:52 PM
Жанибек Мурадинов
why we INITIALISE in for loop like int i=1(must with data type) instead we can initialise outside of loop ex- int i=1 C++
c++
0 głosów
4 odpowiedzi
28th Jan 2022, 5:30 PM
Vinit Kumar.
I'm going to print the sigma from n=30 , i=1 ( i²+1) so can you help me to find my mistake
c++
sololearn
0 głosów
1 Odpowiedź
13th May 2020, 9:39 AM
Dostonbek
Hola en la funcion de bucle for . Porque se declara i=1 y no se hace solamente 1++ el codigo es largo y llevara mas proceso creo
javascript
loops
1 Głos
2 odpowiedzi
13th Jul 2017, 3:48 PM
Juan Franco
If I have for loop which start with i=1 under for loop I write if(i!=2)so under if I write a=i so value of i become 2 or not
c
programming
0 głosów
3 odpowiedzi
29th Dec 2019, 2:29 AM
Hridayansh
Why this code giving different answer when i = 1 . Please give me logical reason . And how to that we have to put i=0 or i=1 ?
c
loops
prograam
1 Głos
2 odpowiedzi
8th Mar 2022, 8:40 AM
Abhay mishra
k=int(raw_input("enter a limit")) f=1 i=1 n=0 while(i<=k): f=f*i i=i+1 import math x=int(raw_input ("enter the value of x")) while(n<=k): math.exp(x)=(x**n)/f n=n+1 print"e**x=",math.exp(x) wht is wrong with this program???
numeric-operations
python
0 głosów
3 odpowiedzi
18th Oct 2016, 12:13 AM
Navaneetha Babu
I would value an advice on the while loop. When i am in the loop i=i+1 i=1 while i<=0 i can't make up why 1 appears on screen?
loops
python
0 głosów
2 odpowiedzi
19th Aug 2016, 3:11 PM
Τηλέμαχος Στικούδης
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Zadaj pytanie
Popularne dzisiaj
Solved Chess tournament you’re creating code for a chess tournament
2 Votes
[off-topic]Where is Result??
2 Votes
I really need a tutor
1 Votes
Mentor rank
2 Votes
[SOLVED] Where do you find code coaches?
1 Votes
∞♥
2 Votes
Cpp
1 Votes
Why does it disappear?
0 Votes
developpement
2 Votes
Have SoloLearn Certs helped anyone find a Job? If so how did you use the ending that you got in learning?
1 Votes