fork download
  1. #include<stdio.h>
  2. int main(){
  3. int x;
  4. printf("Enter a number: ");
  5. scanf("%d",&x);
  6. if(x%5==0){
  7. if(x%3==0){
  8. printf("The number is divisible by 5 and 3");
  9. }
  10. else{
  11. printf("The number is not divisible by 5 and 3");
  12. }
  13. }
  14. else{
  15. printf("The number is not divisible by 5 and 3");
  16. }
  17. }
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
Enter a number: The number is not divisible by 5 and 3