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 i,n,x; | |
printf("Enter a positive number to check prime"); | |
scanf("%d",&n); | |
x = sqrt(n); | |
for(i=2;i<=x;i++) | |
{ | |
if(n%i==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
#include<stdio.h> | |
#include<math.h> | |
int main() | |
{ | |
int tc,n,i,a; | |
while(scanf("%d",&tc)==1){ | |
for(i=1;i<=tc;i++){ | |
scanf("%d",&n); | |
if(n%2==0 && n>=4){ |
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
/// URI : 1436 | |
/// Author : Shohanur Rahaman | |
#include<stdio.h> | |
int main() | |
{ | |
int tc,n,i,tmp,j; | |
int player[9]; | |
int t=0; | |
scanf("%d",&tc); |
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 month[2], day[2], year[2], i, t, age; | |
scanf("%d", &t); | |
for (i = 1; i <= t; ++i) | |
{ |
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
using UnityEditor; | |
using System.Reflection; | |
using System; | |
public static class ConsoleUtilitiesEditor | |
{ | |
[MenuItem("Tools/Clear Console %#c")] // Cmd/Ctrl + Shift + C | |
private static void ClearConsoleMenuItem() | |
{ | |
ClearConsole(); |
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
using UnityEngine; | |
public static class Colors | |
{ | |
public static readonly Color AbsoluteZero = new Color32( 0, 72, 186, 255 ); | |
public static readonly Color Acajou = new Color32( 76, 47, 39, 255 ); | |
public static readonly Color AcidGreen = new Color32( 176, 191, 26, 255 ); | |
public static readonly Color Aero = new Color32( 124, 185, 232, 255 ); | |
public static readonly Color AeroBlue = new Color32( 201, 255, 229, 255 ); | |
public static readonly Color AfricanViolet = new Color32( 178, 132, 190, 255 ); |
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
package notepad; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.util.Scanner; | |
import java.io.*; | |
public class Notepad extends JFrame implements ActionListener { | |
private TextArea textArea = new TextArea("", 0,0, TextArea.SCROLLBARS_VERTICAL_ONLY); |
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
/*jslint white: true*/ | |
/*global Phaser*/ | |
/** | |
* Defines a glow filter for Web GL. | |
* @module | |
*/ | |
Phaser.Filter.Glow = function (game) { | |
'use strict'; |
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
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using UnityEngine.SceneManagement; | |
public class ScreenFader : MonoBehaviour | |
{ | |
public Image FadeImg; | |
public float fadeSpeed = 1.5f; | |
public bool sceneStarting = true; |
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
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.SceneManagement; | |
using System.Collections.Generic; | |
using System.IO; | |
// Scene selection |
OlderNewer