Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

i need to find all the errors which i was able to find most, but i know im missi

ID: 3607427 • Letter: I

Question

i need to find all the errors which i was able to find most, but i know im missing a few somewhere

2. (+20) Find the errors in this code. This is all of the code, there is no additional code that you cannot see. (+2) for each error you find and correct, there are bonus. (-2) for anything you incorrectly identify as an error.

#include “standio.h”

void MyFunc( x )

{

if( y % 2 == 0 ){

printf( “Your value is odd!” );

else{

printf( ‘Your value is even’ );

}

}

void Main

{

print( “Give me a float: %f” );

scanf( “%i,” float x);

x = myfunc();

return0

}

Explanation / Answer

#include “standio.h”

void MyFunc(float x )

{

if( x % 2 == 0 ){

printf( “Your value is odd!” );

}else{

printf( ‘Your value is even’ );

}

}

void Main()

{

float x;

printf( “Give me a float: ” );

scanf( “%i,” &x);

myfunc(x);

}