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
class Leap { // Do not erase this line | |
// Write the check_leap function below this line | |
public static int check_leap(int y) { | |
if(y % 4 == 0) { | |
if(y % 100 == 0) { | |
if(y % 400 == 0) { | |
return 1; | |
} else { | |
return 0; |
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
import java.util.Scanner; | |
class test { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int n = sc.nextInt(); | |
for(int l = 0; l < n; l++) { |
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
import java.io.*; | |
import java.util.*; | |
public class MacroPass1 { | |
public static void main(String[] args) { | |
String[][] replacements = {{"&ARG0", "#0"}, | |
{"&ARG1", "#1"}, | |
{"&ARG2", "#2"}, | |
{"&ARG3", "#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
import java.io.*; | |
import java.util.*; | |
public class MacroPass2 { | |
public static void main(String[] args) { | |
String[][] replacements = {{"&ARG0", "#0"}, | |
{"&ARG1", "#1"}, | |
{"&ARG2", "#2"}, | |
{"&ARG3", "#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
import java.util.*; | |
public class COCompileTimeEvaluation { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("Enter number of expressions"); | |
int n = sc.nextInt(); | |
sc.nextLine(); |
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
import java.util.*; | |
public class CODeadCodeElimination { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
System.out.println("Enter the number of expressions:"); | |
int n = sc.nextInt(); | |
sc.nextLine(); |
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> | |
int main() | |
{ | |
int points[10][2], table[20][100]; | |
int nPoints, cal_a, cal_b, max; | |
printf("Enter number of points: "); | |
scanf("%d", &nPoints); |
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
Show hidden characters
{ | |
"compilerOptions": { | |
... | |
}, | |
"files": [ | |
"types/MicrosoftMaps/CustomMapStyles.d.ts", | |
"types/MicrosoftMaps/Modules/Autosuggest.d.ts" | |
], | |
... | |
} |
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
declare module '*'; |
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
import { Component } from "@angular/core"; | |
import { NavController } from "ionic-angular"; | |
import { Subscription } from "rxjs"; | |
import { finalize } from "rxjs/operators"; | |
import { Geolocation } from "@ionic-native/geolocation"; | |
@Component({ | |
selector: "page-new-post", | |
templateUrl: "new-post.html" | |
}) |
OlderNewer