kiem tien, kiem tien online, kiem tien truc tuyen, kiem tien tren mang
Thursday, March 26, 2015

Bài Giải
‪#‎include‬ <stdio.h>
#include <conio.h>
#include <math.h>
int main ()
{
int n;
float AS,AM,a;
int s=0;
float m=1;
printf("Nhap n: ");
scanf("%d",&n);
int i=0;
while(i<=n)
{
s=s+i;
i++;
}
AS=float (s*1.0)/n;
printf("Trung Binh Cong la : %.2f",AS);
int j=1;
while(j<=n)
{
m=m*i;// sao lại nhân i (:X)
j++;
}

a = float(1.0/n);
AM=float (pow(m,a));

printf("\n");
printf("Trung Binh Nhan la : %.2f",AM);
getch();
}


0 comments:

Post a Comment

domain, domain name, premium domain name for sales

Popular Posts