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 height in feet,h , of a model rocket t seconds after launch is given by the equation h(t) = 3+70t-16t^2.
Who was Joseph Stalin? Watch Biography.com's Mini-Biography of Joseph Stalin and answer the questions below. 1. What was Stalin's early life like? A T 14 2. Wh
What’s the answer? Please help me!
Question: Explain the Difference between an equation and an expression
300€ durante 5 años al 0.3% de interés compuesto mensual. A) ¿Cuánto interés se ha ganado? B) Cuánto interés se ha ganado?
I stg these bots with links keep answering my questions so can anyone help me with this problem? How many grams of chlorine gas are needed to react with 2.50 li
what is the name of the conference that was held in austria after napoleon and his army were finally defeated
Which of these is NOT an example of lifelong learning? A reading a trade magazing B having lunch with a friend C reviewing a textbook
CAN SOMEONE PLEASE HELP
solve the equation below for x in terms of a 5(ax+4)-3ax=5a+2