Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

run time error

$
0
0

hi, i wrote the code for life, universe, and everything given in easy category. this is my first code in this codechef. i am getting run time error. what it means????

include<stdio.h>

include<conio.h>

int main() { int a[10],i; printf("\n enter the numbers"); for(i=0;i<10;i++) { scanf("%d",&a[i]); } i=0; while(a[i]!=42) { printf("\nthe no.s %d",a[i]); i++; }

               getch();
               return 0;

}

can anyone help me to understand why run time error is coming????


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>