Please look through the code given below; there might be something wrong. You are asked to state what parts are missing or wrong, explain how to fix the code. Then tell us what the output will be
** This is an essay question **
Code
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int a, i;
printf("Enter a number: ");
scanf
if(a=0){
printf("Please do not enter a negative number or zero")
}
else
for(i=1;i<=a;i+){
if(i%2!=0){
printf("\n %d--Odd", i);
printf("\n %c--Even", i);
}
return 0;
}
**** % = reminder of division