Sunday, February 25, 2018

C program : To check whether M is an exact multiple of N

#include<stdio.h>

int main()
{
     int M,N,q;
  scanf("%i %i",&M, &N);
  if((M%N)!=0)
  {printf("0");}
  else{
    q=M/N;
    printf("%i",q);
  }
  return 0;
}

Thanks
Happy Computing !

No comments:

Post a Comment

Class IX IT notes: Part A, Unit 1, Session 3.

 IT notes class 9 Part A Unit 1: COMMUNICATION SKILLS session 3: VISUAL AND WRITTEN METHODS OF COMMUNICATION Q1. What is Visual Communicatio...