Write a program in *C++* to accept a number from the user and check if it is
divisible by 4, 5 and 10. (The number should be divisible by all the 3
numbers)
Answers
Answered by
1
Answer:
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int n;
cin>>n;
if(n%4==0&&n%5==0&&n%10==0)
{
cout<<"yes";
}
else
{
cout<<"no";
}
getch() ;
}
please Mark as brainliest☺ ❤☺
Similar questions