ok-ive been looking at this program for 2 hrs,trying to get it to compile with vi. no luck. im a beginning student with c programming.

int sum -0, x-1
sum +=x;
sum = sum + 5%2
printf("The sum is %d/\n",sum);

----------------------------------------------------------------

#include <stdio.h>
/*
int main(void)
{


int sum = 0
int x = 1;


scanf("%d",sum+5%2);
printf("the sum is %d\n" sum);


return o;
} /*

thanks for any asssistance...jo

Dave Sinkula commented: Use code tags. +0

Why do you return "o" when you should return "0" (zero)?