Quantcast
Channel: Dạy Nhau Học - Latest topics
Viewing all articles
Browse latest Browse all 34352

Giúp kiểm tra code đệ quy tính dãy số

$
0
0

@Khoa_Tran wrote:

Mọi người giúp mình kiểm tra bài đệ quy này bị sai chỗ vào với

float cau3b(float n)
{
	if(n==1||n==0)
	{
		return 1;
	}
	double xn=0;
	if(n>1)
	{
       return n*cau3b(n-1) + (n-1)*cau3b(n-2)  ;
		
	}
	
}

Posts: 10

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 34352

Latest Images

Trending Articles