Question

 

Write a menu driven program (using switch-case) which accepts a number as user input: A) Checks whether the number is even or odd B) Checks whether the number is prime

09 Jan 2026
Answer :
Word Count : 135
#include #include int main() { int choice, num, i, flag; ``` while(1) { printf("\nMenu:\n"); printf("1. Check Even or Odd\n"); printf("2. ____ ___ _____ ______ _________ _________ _________ ___ _____ _________ ____ _______.
___ _______ ______ ___ ______ _________ ___ ______.
_____ ______ __________ ___ ________ ________.
_____ ________ ______ ____ ____ ______ ____ ________ _______.
__________ ___ _______ ____ ___ ______ _________ __________.
______ __________ _________ _______ ___ ________ _____ _______.
_____ ___ ____ __________ _____ ____ ______ ________ __________ ___ _____ _____.
________ _______ _______ ____ __________ ___.
____ __________ _____ ____ ________ __________ _________ _________ ________.
_____ _________ _____ ____ __________.
____ __________ ____ ___ _____ ___ _____.
__________ _________ __________ ___ __________ ___ _________ ___.
__________ __________ _________ __________ __________ _______ ______ ___ _________ _________.
_______ _____ ____ ___ __________.
Get Full Answer on WhatsApp
IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance  Write a menu driven program (using switch-case) which accept
🟢
WhatsApp Chat Fast live messaging
Email Us Business enquiries & support