0

Why I unable to run every program on solo learn🙄🙄

Whenever I try to run a program it always don't show the correct output as the program is totally correct and whenever I make it another app it'll show output

11th Jul 2020, 5:56 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
7 odpowiedzi
+ 2
[array index always start with 0] your code is finding all the even numbers out of 20 numbers. edit: I've deleted the code and instead pasted the source codes here... // Created by Navneet #include <stdio.h> int main() { int i,a[20] ={1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2}; /*for(i=0;i<20;i++) { scanf("%d",&a[i]); }*/ for(i=0;i<20;i++) { if(a[i]%2==0) { printf("%d,",a[i]); } } return 0; }
11th Jul 2020, 6:16 PM
RKK
RKK - avatar
+ 1
RKK I've not understood 😅
11th Jul 2020, 6:09 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
+ 1
RKK thank you soo much 😇😇
11th Jul 2020, 6:20 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
0
Nearly all
11th Jul 2020, 5:57 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
0
I'll show you
11th Jul 2020, 5:57 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
11th Jul 2020, 6:00 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar
0
RKK doesn't work 🙄
11th Jul 2020, 6:16 PM
Navneet Kaur💫
Navneet Kaur💫 - avatar