|
CS256 - Fundamentals of Structured Programming
| Displaying exercises/e2/files/math.c
#include <stdio.h>
/**
* Replace all the ?'s so that this becomes a working program:
*/
int main(void)
{
// Define two integers to hold the a and b values:
?
// Modify the printf to print the prompt: a?
printf( ? );
// Modify the scanf to read an integer into the variable a:
scanf( ? );
// Modify the printf to print the prompt: b?
printf( ? );
// Modify the scanf to read an integer into the variable b:
scanf( ? );
// Complete the printf:
printf("%d + %d = %d\n", ?, ?, ?);
return 0;
}
|