CORONG_EXERCISENO3 (2)
Write a program that will input a number and will print "Divisible" if the number is divided 5, otherwise print "Not Visible"
Keir Jaspher Corong
Write a program that will input a number and will print "Divisible" if the number is divided 5, otherwise print "Not Visible"
#include<stdio.h>
int main()
{
int number;
printf("\n Please enter any number to check weather it is divisible by 5:");
scanf("%d",&number);
|
if(number % 5 == 0)
printf("\n %d is divisible",number);
else
printf("\n %d is Not Divisible",number);
return 0;
}
#include<stdio.h>
int main()
{
int number;
printf("\n Please enter any number to check weather it is divisible by 5:");
scanf("%d",&number);
|
if(number % 5 == 0)
printf("\n %d is divisible",number)
else
printf("\n %d is Not Divisible",number)
return 0;
}