This homework must contain Java code AND C code.
ava Requirements:
Must have a user-interface function which requests the user toenter an integer.
If the given number is less than or equal to 0, the program mustdisplay an error message and prompt the user to re-enter avalue.
Contains a print function which uses a for loop to generate alist of factors starting from 1 to the given number itself withindeces.
————————————————————————
Homework 1:
Contains a user-interface function which requests the user toenter a integer, and returns the given integer.
If the given value is a character or string, the program mustdisplay an error message and prompt the user
PayPal Gateway not configured
PayPal Gateway not configured