Question: Create C code #include #define TRUE 1 #define FALSE 0 int main ( void ) { double num; char choice; int done = FALSE; while

Create C code
#include
#define TRUE 1
#define FALSE 0
int main(void){
double num;
char choice;
int done = FALSE;
while (!done){
/* COMMENTS START
=======================================
prompt user for input
read input (scanf)--> num
display the value of input-squared
prompt user for 'are you done?'
read input (scanf)--> choice
if choice is 'y' or 'Y'
done is TRUE (update variable)
else
done remains as FALSE (no update)
loop back to beginning...
=========================================
END OF COMMENTS */
}
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!