Header Ads

Header ADS

Write a C program that reads in two integers and determines and prints if the first is a multiple of second

Program Code 


#include<stdio.h>
int main()

int n1,n2;
printf("Enter the two integers number");
scanf("%d%d",&n1,&n2);
if(n1%n2==0){
    printf("First number is Multiple of second number");
}
    else{
        printf("First number is not Multiple of second number");
    }
}




Input


Output



 

No comments

Powered by Blogger.