anonymous No title
No License C++
2020年09月14日
Copy Clone
#include "stdio.h"

//階乗関数
double fact(double k) {
	double y,i;
	y = 1;
	for (i = 1; i <= k;i++) {
		y = y * i;
	}
	return(y);
}

//自然対数01
int main() {
	double s, i;
	s = 0;

	for (i = 0; i <= 20; i++) {
		s += 1 / fact(i);
	}

	printf("%lf",s);
}

//自然対数02
int main() {
	double s, p, i;
	s = 1 , p = 1;

	for (i = 1; i <= 20; i++) {
		p = p / i;
		s += p;
	}

	printf("%lf",s);
}

//組み合わせ01
int main() {
	double c, n, r, i;

	//入力
	printf("n=");
	scanf_s("%lf",&n);
	printf("r=");
	scanf_s("%lf",&r);

	c = fact(n) / (fact(r)*fact(n-r));

	printf("%lf",c);
}
#include "stdio.h"

//階乗関数
double fact(double k) {
	double y,i;
	y = 1;
	for (i = 1; i <= k;i++) {
		y = y * i;
	}
	return(y);
}

//自然対数01
int main() {
	double s, i;
	s = 0;

	for (i = 0; i <= 20; i++) {
		s += 1 / fact(i);
	}

	printf("%lf",s);
}

//自然対数02
int main() {
	double s, p, i;
	s = 1 , p = 1;

	for (i = 1; i <= 20; i++) {
		p = p / i;
		s += p;
	}

	printf("%lf",s);
}

//組み合わせ01
int main() {
	double c, n, r, i;

	//入力
	printf("n=");
	scanf_s("%lf",&n);
	printf("r=");
	scanf_s("%lf",&r);

	c = fact(n) / (fact(r)*fact(n-r));

	printf("%lf",c);
}
anonymous
Anonymous
2021年04月25日
Drugs information for patients. Brand names. <a href="https://pregabalininfo.top">buying pregabalin for sale</a> in USA Some about pills. Read now.
anonymous
Anonymous
2021年04月28日
Meds prescribing information. Effects of Drug Abuse. <a href="https://topregabalin.top">where to buy cheap lyrica without dr prescription</a> in Canada Actual trends of medicine. Get information now.
anonymous
Anonymous
2021年04月30日
buy cialis cheap <a href="https://mycialistabs.com/">cialis instructions</a> cialis 5mg daily how long before it works
anonymous
Anonymous
2021年04月30日
how long before sex should you take cialis <a href="https://mycialistabs.com/">cialis viagra</a> cialis 20 milligram
anonymous
Anonymous
2021年05月02日
cialis manufacturer coupon <a href="https://toptadalafiltabs.com/">tadalafil coupon</a> what cialis
anonymous
Anonymous
2021年05月03日
is there a generic cialis available? <a href="https://toptadalafiltabs.com/">normal dose of cialis</a> what does cialis look like
anonymous
Anonymous
2021年05月04日
how to write a good hook for an essay <a href="https://topessaywriterfas.com/">writing an argument essay</a> how to write a 3 page essay fast
anonymous
Anonymous
2021年05月05日
how to write a college admissions essay <a href="https://topessaywriterfas.com/">write a reflection essay</a> tips on how to write an essay
anonymous
Anonymous
2021年05月06日
community service-scholarship essay sample <a href="http://writemyessayslfd.com/">pay to write my essay</a> writing a great essay
anonymous
Anonymous
2021年05月07日
cheap viagra <a href="https://mrviagrashop.com">viagra soft</a> buy sildenafil
anonymous
Anonymous
2021年05月07日
a essay on community service <a href="http://writemyessayslfd.com/">writing college essay</a> essay on student social service
anonymous
Anonymous
2021年05月07日
canadian pharmacy viagra 50 mg <a href="https://mrviagrashop.com">sildenafil for women</a> sildenafil 25 mg
anonymous
Anonymous
2021年05月07日
sildenafil 50 mg <a href="https://mysildenafilkr.com/">viagra alternative</a> where to buy viagra
anonymous
Anonymous
2021年05月08日
sildenafil over the counter <a href="https://mysildenafilkr.com/">viagra online usa</a> viagra from canada
anonymous
Anonymous
2021年05月12日
viagra and cialis together <a href="http://tadalafilled.com/">how many years can you take cialis?</a> brand cialis
anonymous
Anonymous
2021年05月12日
cover letter definition <a href="http://coverletterforresumetop.com/">top resume reviews</a> is a cover letter necessary
anonymous
Anonymous
2021年05月12日
technical skills for resume <a href="http://coverletterforresumetop.com/">cover letter for interview</a> physical therapy resume
anonymous
Anonymous
2021年05月12日
generic name for cialis <a href="http://tadalafilled.com/">tadalafil 20mg india</a> how much does cialis cost per pill
anonymous
Anonymous
2021年05月13日
resumed <a href="https://writingacoverletteronline.com/">resume writing assistance</a> interests on resume
anonymous
Anonymous
2021年05月13日
resume online <a href="https://writingacoverletteronline.com/">https://writingacoverletteronline.com/</a> verbs for resumes
anonymous
Anonymous
2021年05月14日
generic viagra walmart <a href="https://edviagramaster.net/">canadian pharmacy ezzz viagra</a> sildenafil online
anonymous
Anonymous
2021年05月14日
viagra cialis <a href="https://edviagramaster.net/">natural alternative to viagra</a> viagra alternative
anonymous
Anonymous
2021年05月15日
viagra on steroids <a href="https://sildenafilviagratop.com">20mg sildenafil</a> low price viagra
anonymous
Anonymous
2021年05月15日
cialis 5 mg <a href="https://cialisortadalafil.com/">can i take 40mg of cialis</a> cialis canadian pharmacy
anonymous
Anonymous
2021年05月16日
what are the side effects of cialis <a href="https://cialisortadalafil.com/">buy generic cialis</a> buy cialis online in usa
anonymous
Anonymous
2021年05月16日
sildenafil citrate 20mg <a href="https://sildenafilviagratop.com">liquid viagra</a> sildenafil for pah
anonymous
Anonymous
2021年05月17日
cialis generic <a href="https://topcialistabs.com/">https://topcialistabs.com/</a> buying cialis cheap
anonymous
Anonymous
2021年05月17日
how much cialis to take <a href="https://topcialistabs.com/">cialis for sale</a> what happens if you take 2 cialis
anonymous
Anonymous
2021年06月02日
Drugs information for patients. Drug Class. <a href="https://pregabalininfo.top">pregabalin no prescription</a> in USA All what you want to know about drugs. Get information here.