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

in cellular membranes, why do the tails end of the lipid molecules face towards each other?
The cost of textbooks for school increases with the average class size identify the independent and dependent quantity in the solution
Why did Zionists want to create an independent state for the Jewish people in the former colony of Palestine? A. The claimed that Muslims had no right to c
Choose the correct graph to fit the equation. 4x - 3y = -1
PLZ HELP ME, THIS IS URGENT! I’m completely lost... :(
Which is the BEST description of Shays' Rebellion of 1786-87?
hammurabi’s law was important because it: a. established equality for all people b. created the first democracy c. provided a clear, written system of justice
What is the range of this function ?
What is the discriminant of the quadratic equation 0= -x^2+4x-2
What happens to an ionic compound when it is dissolved in water? A Liquid crystals are formed. B The ions separate and conduct electricity. C The ions combin