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.
1). Ans :
#include <stdio.h>
int main() {
int a, b;
printf("Enter number a : ");
________ ___ _______ ___ ____ ____ ____ _______.
_______ _______ ______ _________ _______ ______ ________.
____ ______ _________ ____ _________ ______ ______ __________ ____ _______ ______ ________.
_____ _______ _________ ____ __________ _______ _______ _______ ______ ________ ___.
__________ _____ _____ ____ ___.
___ _________ _____ _____ _______ _____.
______ _______ ___ ___ ___ ______.
_____ ______ _____ ___ ______ _____ _______ ________ _________ ________ ________ ________.
___ _____ ___ _________ _________ ______ ____ ______ ________ ________ _________ ______.
__________ _______ ____ ______ ____ _______ ____ _______ ___ ______ ______.
Get Full Answer on WhatsApp