Lesson 1.
This commit is contained in:
11
01/Exercise3-1.c
Normal file
11
01/Exercise3-1.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
int main() {
|
||||
double a, b, z;
|
||||
printf("input a and b");
|
||||
scanf("%lf, %lf", &a, &b);
|
||||
z = exp(a * a + b * b);
|
||||
printf("z = %f\n", z);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user