1. Practical No.-5
Aim
: To demonstrate the program for verifying
The numbers which is completely divisible
By 5 & 2.
Source code :
#include<iostream.h>
#include<conio.h>
void main()
{
int a;
cout <<”Enter the value of a”;
cin >>a;
if (a%2=0)&&(a%5=0)
cout<<”the number is divisible by 5&2”;
}
Output
:
Enter the value of a=10
the number is divisible by 5&2