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

Whats the was i could solve this
The starting materials in a nuclear change have a total mass of 2.3465 × 10–27 kg. after the change, the resulting materials have a mass of 2.3148 × 10–27 kg. h
I'm not sure if what I got is right.
It's science but I don't see the category for it
Below is a nuclear equation. What number should go in the place marked (i)?
Which occurred in the wake of king’s assassination in 1968? riots broke out in more than one hundred cities across the united states as people grieved. the civi
The American composer Charles Ives was born and grew up in what geographic area of the United States
I need help on shehidbdornd Fr
How do furnace heating systems typically work? ignition of fuel creates a pressure change inside the furnace, causing a piston to exhaust hot air into the build
Read the mice scenario in order to answer the following question. write a valid hypothesis for this experiment.