Question

Write a C program which prompts the user with the following options at the command prompt:

1) Compare two numbers for the larger,

2) Test a number for prime or not.

After choosing the option program will ask user to enter any two integers and perform the operation as given in the options.

08 Oct 2021
Answer :
Word Count : 112

1). Ans :

#include <stdio.h>


int main() {
   int a, b;
 printf("Enter number a : ");
________ ___ _______ ___ ____ ____ ____ _______.
_______ _______ ______ _________ _______ ______ ________.
____ ______ _________ ____ _________ ______ ______ __________ ____ _______ ______ ________.
_____ _______ _________ ____ __________ _______ _______ _______ ______ ________ ___.
__________ _____ _____ ____ ___.
___ _________ _____ _____ _______ _____.
______ _______ ___ ___ ___ ______.
_____ ______ _____ ___ ______ _____ _______ ________ _________ ________ ________ ________.
___ _____ ___ _________ _________ ______ ____ ______ ________ ________ _________ ______.
__________ _______ ____ ______ ____ _______ ____ _______ ___ ______ ______.
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 C program which prompts the user with the following options at
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→