Skip to content

Instantly share code, notes, and snippets.

@qassa
Created September 29, 2013 12:00
Show Gist options
  • Save qassa/6751920 to your computer and use it in GitHub Desktop.
Save qassa/6751920 to your computer and use it in GitHub Desktop.
остаток от деления на 3 (проверка деления на 3)
#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