Created
September 29, 2013 12:00
-
-
Save qassa/6751920 to your computer and use it in GitHub Desktop.
остаток от деления на 3 (проверка деления на 3)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<conio.h> | |
#include<stdio.h> | |
double is3 (int n){ | |
return n%3==0; | |
} | |
int main (){ | |
double x; | |
double f; | |
scanf("%lf",&x); | |
f=is3(x); | |
printf("%lf",f); | |
getch(); | |
return 0; | |
} | |
//остаток от деления на 3 (проверка деления на 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment