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 <iostream> | |
#include <vector> | |
#include <time.h> | |
#include <float.h> | |
#include <math.h> | |
using namespace std; | |
//int checkPrime(int num, vector<int> array); | |
int checkPrime(int num, vector<int> &array); |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require_relative 'age' | |
require_relative 'negi' | |
require_relative 'tamago' | |
kinugasa = Kinugasadon::Kinugasa.new | |
kinugasa.addage | |
kinugasa.addnegi |
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
module Kinugasadon | |
class Kinugasa | |
def addage | |
puts "油揚げを入れました" | |
end | |
def addfruits | |
puts "バナナを入れました" | |
end | |
end |
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
module Kinugasadon | |
class Kinugasa | |
def addnegi | |
puts "葱を入れました" | |
end | |
def addfruits | |
puts "苺を入れました" | |
end | |
end |
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
module Kinugasadon | |
class Kinugasa | |
def addtamago | |
puts "玉子をいれました" | |
end | |
def addfruits | |
puts "衣笠丼にはフルーツは入れません" | |
end |
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 int_pow(int x, int y); | |
int main(){ | |
printf("%d\n",int_pow(3,4)); | |
}; | |
int int_pow(int x, int y){ | |
if(y == 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> | |
double sankakkei_menseki(double teihen, double takasa); | |
double enmenseki(double hankei); | |
double enchuu_taiseki(double teimenseki, double takasa); | |
int main(){ | |
printf("%5.2f\n", sankakkei_menseki(5.0, 4.0)); | |
printf("%5.2f\n", enmenseki(5.0)); | |
printf("%5.2f\n", enchuu_taiseki(5.0, 10.0)); | |
printf("%5.2f\n", enchuu_taiseki(enmenseki(5.0),10.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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Data::Dumper; | |
use feature ':5.10'; | |
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
print "私の名前は@tomcha_です。" |
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
first = '衣笠丼' | |
second = 'ぬか漬け' | |
third = '寿司' | |
puts first | |
puts second | |
puts third | |
animals = ['猫', '犬', '猿'] |