#include
#include
#include
void main()
{
float a,t,r,K,L;
scanf("%f%f",&a,&t);
r=sqrt(a*a+t*t);
K=a+r+t;
L=(a*t)/2;
printf("r=%.2f, K= %.2f, L= %.2f",&r,&K,&L);
getch();
}
Contoh Implementasi dari Cloud Computing
12 tahun yang lalu
#include
#include
#include
void main()
{
float a,t,r,K,L;
scanf("%f%f",&a,&t);
r=sqrt(a*a+t*t);
K=a+r+t;
L=(a*t)/2;
printf("r=%.2f, K= %.2f, L= %.2f",&r,&K,&L);
getch();
}
simply but sure.......
nice inpo gan..........
tapi includenya kok kosong???????