“CORONG_EXERCISENO3 (2)” Código de respuesta

CORONG_EXERCISENO3 (2)

Write a program that will input a number and will print "Divisible" if the number is divided 5, otherwise print "Not Visible"
Keir Jaspher Corong

CORONG_EXERCISENO3 (2)

#include<stdio.h>

int main()
{
  int number;
  
  printf("\n Please enter any number to check weather it is divisible by 5:");
  scanf("%d",&number);
  |
    if(number % 5 == 0)
    printf("\n %d is divisible",number);
    
    else
      printf("\n %d is Not Divisible",number);
      return 0;
}
Keir Jaspher Corong

CORONG_EXERCISENO3 (2)

#include<stdio.h>

int main()
{
  int number;
  
  printf("\n Please enter any number to check weather it is divisible by 5:");
  scanf("%d",&number);
  |
    if(number % 5 == 0)
    printf("\n %d is divisible",number)
    
    else
      printf("\n %d is Not Divisible",number)
      return 0;
}
Keir Jaspher Corong

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código