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

The theory that explains the movement of the Earth's crust and formation of landforms iscalled the Theory of_____________________________​
PLS HELP! Which of the following questions are statistical questions? (more than one and assume the question is asked of the entire class) A How many dogs do yo
so in the thing p=m/v to find m would you times v by p?
Help if u know please
1199.28856995 to the nearest ten
The equation of the line that goes through the point ( 3 , 4 ) and is parallel to the line 3 x + 4 y = 2 can be written in the form y = m x + b
How many real roots does the following equation have? x4 -81 = 0
Find the area of each figure
Which type of change can be reversed? A.)a physical changeB.)a chemical changeC.)a molecular changeD.)an electric change
Approximate the real zeros of x^4-5x^3+6x^2-x-2 to the nearest tenth. a. 0.4, c. 4, 3.4 b. , 3.4 d. -4, 3.4