Code:
#include <stdio.h>
int main()
{
int age;
int name;
printf( "enter your name" );
scanf( "%d", name );
if ( name == reece ) {
printf( "wow thats my name aswell\n" );
}
else {
printf( "you are &name\n" );
}
printf( "enter your age" );
scanf( "%d", age );
if ( age == 17 ) {
printf( "wow I'm that age\n" );
}
else {
printf( "your name is &name\n" );
}
getchar();
reutnr 0;
}
i wrote this on my own, just for fun to see if it works but it gets an error on the if ( name == Reece ); line... ne suggestions on it?
and also is this the best way to write a code like?