Answer:
Your solution is ready.
Explanation:
Visit: gotit-pro.com/design-a-gui-interface-to-accept-user-input-and-add-the-data-to-a-cell-phone
And get the complete working code for this assignment.
Feel free to reach out to me for fastest, top-notch and impeccable homework and exams help including Pearson Labs etc.
Thanks and Best Regards: Your Friendly Study Co-Pilot
Answer:
// here is code in C.
// headers
#include <stdio.h>
// main function
int main(void) {
// variable declaration
int favorite_number;
// ask user to enter favorite number
printf("enter your favorite number : ");
// read the number
scanf("%d",&favorite_number);
// print the message
printf("your favorite number is: %d",favorite_number);
return 0;
}
Explanation:
Declare a variable "favorite_number" of integer type.Ask user to enter favorite number and assign it to favorite_number.Then print the message which include the favorite number.
Output:
enter your favorite number : 77
your favorite number is: 77