Programming Examples

Write a program to find the number in between 7 and 100 which is exactly divisible by 4 and if divided by 5 and 6 remainders obtained should be 4.


Write a program to find the number in between 7 and 100 which is exactly divisible by 4 and if divided by 5 and 6 remainders obtained should be 4?

Solution

# include <stdio.h>
# include <conio.h>
void main()
{
int x;
clrscr();
for(x=7;x<100;x++)
{
 if(x%4==0 && x%5==4 && x%6==4)
 {
 printf(“\n Number : %d”,x);
 }
}
getche();
}
Output

OUTPUT: Number : 64

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2024 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz