Program to find whether first input divides second completely or not in C++

Program to find whether first input divides second completely or not in C++

[xyz-ihs snippet=”Google-Adsense”]

-Program:

#include <stdio.h>
#include <conio.h>
void main () {
int x, y;
printf(“Enter X:”);
scanf(“%d”,&x);
printf(“Enter Y:”);
scanf(“%d”,&y);
if (y%x==0)
printf(“\nDivides completely!”);
else
printf(“\nDoesn’t divide completely!”);
int z = y%x;
printf(“\nRemainder is: %d”, z);
getch();
}

[xyz-ihs snippet=”200-x-90″]

-Output:

[xyz-ihs snippet=”200-x-90″]

RemainderProgram

Remainder checking program


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

[xyz-ihs snippet=”200-x-90″]

Related Posts

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: