0

Answer

Write a program that takes input 1, 2, 3 and 0 if you enter 1 then it will ask to enter any number to find its factorial using user-defined function. If you enter 2 then it will ask user to enter any number to print even digits of a number using user-defined function. if you enter 3 then it asks user to enter a number to find whether it is a prime or not using user defined function. To stop this program you should give input as 0, otherwise program should keep running. If you enter other input values. It must display "enter valid input and try again"

4th Jul 2022, 5:06 PM
Aswini Talari
Aswini Talari - avatar
5 odpowiedzi
+ 3
where is your code/attempt !
4th Jul 2022, 5:21 PM
Amine Laaboudi
Amine Laaboudi - avatar
+ 2
You can get help much faster if you tag the relevant programming language and share your code attempt with us so we can check on it
4th Jul 2022, 5:44 PM
Lisa
Lisa - avatar
+ 2
Pls edit your question description with a link to your code in Code Playground. Use "+" button to add the link. If you have difficulties, explain them in the question description too.
4th Jul 2022, 5:57 PM
Emerson Prado
Emerson Prado - avatar
+ 2
Hi Aswini Talari Please provide your attempt. We would like to help you. However, Coding assignments posted without proof of any attempts to solve the problem may be considered an incomplete question. Such post violate the guidelines and may be subjected to deletion. Content Creation and Community Guidelines https://www.sololearn.com/Discuss/3021159/?ref=app https://code.sololearn.com/W1AxdV4e2H68/?ref=app
5th Jul 2022, 5:52 AM
Chris Coder
Chris Coder - avatar
0
Thanks all of u today my teacher explained
5th Jul 2022, 8:21 AM
Aswini Talari
Aswini Talari - avatar