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

2 angles in a triangle add up to 125 degrees. What is the size of the third angle?
Which was among President Nixon’s original proposals to help the US economy?
how is the frog's respiratory system different from humans?
What is the equation of the trend line? y=mx+b form please
What are the names of clinton's two supreme court appointees?
diseases caused by errors during meiosis and why? DO NOT COPY FROM GOOGLE OR I WILL REPORT YOU FOR PLAGIARISM
Explain why did Qin face little opposition during most of his reign? PLEASE ANSWER FAST MAYDAY MAYDAY!!!!!!!!!!!!!!!!
You need to choose between 2 cell phone plans. The Main plan has no monthly charge but charges $0.65 per minute. The Lead plan charges $2.99 for the month and o
What legal punishments are there for plagiarism face?
What part of the country would u find the most active volcanoes? Eastern central,western which one