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

Life, the Universe, and Everything: Runtime Error(NZEC)

$
0
0

I'm trying to submit code for the problem "Life, the Universe, and Everything" under the Section "Practice(easy)". But I'm getting this error message

Runtime Error(NZEC)

But in code Blocks the below is working fine. Whats wrong

#include<stdio.h>
void main()
{
int i;
scanf("%d",&i);
while(i!=42&&i<100)
{
    printf("\n%d",i);
    scanf("%d",&i);
}
return ;
}

Viewing all articles
Browse latest Browse all 39796

Trending Articles



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