Skip to main content

Posts

Showing posts with the label 16. Write a C program to check whether a number is divisible by 5 and 11 or not.

ads1

16. Write a C program to check whether a number is divisible by 5 and 11 or not.

 16 . Write a C program to check whether a number is divisible by 5 and 11 or not. Solution :- #include<stdio.h> #include<conio.h> void main() {     clrscr();     int a;     printf("Enter the number :-");     scanf("%d",&a);     if((a%5==0)&&(a%11==0))     {         printf("%d The number is Divisble by 5 and 11");     }     else     {         printf("%d The number is not Divisble by 5 and 11 ");     } getch(); } Output :-       

ads2