In this program user checks the logic about numeric value that will it be Division able with 5 or not. To check this declares a variable of integer type. And a logic will be used along with the Modulus operator(%).that will be manipulate with the numeric value and control statement (if-else) used if the numeric value is dividable than output will be ok else it will be reverse.
This is the program to check whether the Numeric value is division able with 5 or Not.
- Enter Numeric value.
- Use Logic to manipulate.
- Declare if-else Condition.
- Displaying output on the Display.
Here is source code of the C program to Check out The Numeric value is Division able with 5 or Not. The C program is successfully compiled. The program output is also shown below.
printf ("Enter the no.");
printf("No.is Divisible by 5");
printf("No is not Divisible by 5");