Hey if anyone is interested in making a little easy side money I am spread pretty thin this semester. This is my current assignment if you think you can do it hit me up and we can discuss pricing and future projects thanks.
"Convert the following code to assembly language and run with compiler. Run this code on input 50, 48, 52, -10 and 0."
"Make sure code is giving no output on negative numbers as age can not be less than 0. (It should ask for another number if the last number was negative.)"
''int main() {
int age;
printf( "Please enter your age" );
scanf( "%d", &age ); //This line is same as cin<<age;
if ( age < 50 ) {
printf ("You are pretty young!\n" ); //print 1 in assembly
}
else if ( age == 50 ) {
printf( "You are old\n" ); //print 2 in assembly
}
else {
printf( "You are really old\n" ); //print 3 in assembly
}
return 0;
}''