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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<script> |
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
/* | |
This file contains validations that are too specific to be part of the core | |
Please reference the file AFTER the translation file or the rules will be overwritten | |
Use at your own risk. We can't provide support for most of the validations | |
*/ | |
(function($){ | |
if($.validationEngineLanguage == undefined || $.validationEngineLanguage.allRules == undefined ) | |
alert("Please include other-validations.js AFTER the translation file"); | |
else { | |
$.validationEngineLanguage.allRules["postcodeUK"] = { |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <math.h> | |
/* qsort int comparison function */ | |
int int_cmp(const void *a, const void *b) | |
{ | |
const int *ia = (const int *) a; // casting pointer types | |
const int *ib = (const int *) b; | |
return *ia - *ib; |
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 <stdio.h> | |
#include <math.h> | |
int main() | |
{ | |
double x,r,i; | |
scanf("%lf", &x); | |
if (x>0){ |