“Corong_exerciseno3 (2)” Ответ

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

Смотреть популярные ответы по языку

Смотреть другие языки программирования