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 ___ _____ ____ __________ ________ ____ _________.
________ _____ ________ ______ ______ _____ _______ ______ _________.
_____ _____ ___ ____ _________ ___ ____ ______ _______ __________ ________.
______ ______ _______ ____ ________ ____ _________ _______ ____ _________.
__________ _______ _____ ___ __________.
___ __________ _____ _____ ________ ____.
____ _______ _______ ______ ____ ___ _______ _________ _____ __________ ___ _______.
__________ ______ _____ ________ _____ _________ ________ _____ __________ _________.
__________ ________ _____ _____ _________ ________ ___ _____ ___ _____.
_____ ____ _________ ________ _______ ________ __________ _________ _____ ________ _______.
_________ _________ ____.
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