Code:#include <stdio.h>
#include <stdlib.h>
int primecheck(int N, int Y);
void main()
{
int u,l,x;
float z,a;
while(scanf("%d %d",&u,&l)==2){
if(l>u){
u=a;
l=u;
a=u;
}
x=primecheck(u,l);
z=(x/(l-u))*100;
printf("%f",x);
}
}
int primecheck(int N, int Y)
{
int c=0,i,k;
for(i=N; i<=Y; i++){
k=(i*i)+i+41;
if(k%2!=0){
c++;
}
}
return c;
}
no compilation errors. but program crashed. newbie here T_T

