SOLVE IN C PROGRAMMING LANGUAGE Q # 1. Illustrate your knowledge of C-Programming by implementing following programs: (a). Write a function that takes an integer as input and finds whether it is a...

Solve in c programming language.
SOLVE IN C PROGRAMMING LANGUAGE<br>Q # 1.<br>Illustrate your knowledge of C-Programming by implementing following programs:<br>(a). Write a function that takes an integer as input and finds whether it is a prime number or<br>not. Function should return 1 if number is prime, 0 otherwise. In main (), ask the user to enter<br>the number and call the function. Based upon the value returned by the function, main () will<br>display on screen, if the number is prime or not.<br>(b). Write a function decimal to binary () that takes an integer value converts it to binary and<br>returns the binary number. In main () ask for an integer from user, call decimal to binary 0 to<br>convert the number to binary and display the result on screen.<br>

Extracted text: SOLVE IN C PROGRAMMING LANGUAGE Q # 1. Illustrate your knowledge of C-Programming by implementing following programs: (a). Write a function that takes an integer as input and finds whether it is a prime number or not. Function should return 1 if number is prime, 0 otherwise. In main (), ask the user to enter the number and call the function. Based upon the value returned by the function, main () will display on screen, if the number is prime or not. (b). Write a function decimal to binary () that takes an integer value converts it to binary and returns the binary number. In main () ask for an integer from user, call decimal to binary 0 to convert the number to binary and display the result on screen.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here