hp9843116206 hp9843116206
  • 22-12-2020
  • Computers and Technology
contestada

Write a program to input a number and check whether it is divisible by 5 or not​

Respuesta :

usamariaz756
usamariaz756 usamariaz756
  • 01-05-2021

Answer:#include<stdio.h>

void main()

{

        int a;

        clrscr();

        printf ("Enter the no.");

        scanf("%d",&a);

        if(a%5==0)

         {

            printf("No.is Divisible by 5");

         }

        else

        {

              printf("No is not Divisible by 5");

        }

              getch();

}

Answer Link

Otras preguntas

Use the table to help you answer.
What is the function of ‘relay nerves’?
what is photosynthesis ​
Can I have some pointers on what to write for this question
In right triangle ABC, angle C = 90 degrees, c = 3, and a + b = square root of 17. Compute the area of the triangle.
Katie has been an elementary school teacher for the last 10 years. she is thinking about going back to school to become a computer programmer; however, she is n
I was assaulted which left me impaired at the ankle. I recently found out that my doctor failed to document anything from 2015 and started to document in 2017,e
“The Ballad of Birmingham:” Which is a central idea presented in the poem?
Please help me guys, thanks
HELPwhat is the volume of the cube?DO NOT ENTER UNITS