Lesson 1.

This commit is contained in:
unlockable
2022-09-23 17:43:35 +08:00
parent 24eedf3824
commit 1bc763e78e
3 changed files with 32 additions and 0 deletions

11
01/Exercise3-1.c Normal file
View 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;
}

8
01/Exercise3-7.c Normal file
View File

@@ -0,0 +1,8 @@
#include<stdio.h>
int main() {
char a;
scanf("%c", &a);
printf("%c", a-32);
return 0;
}

13
01/Experiment1-1.c Normal file
View File

@@ -0,0 +1,13 @@
#include "stdio.h"
#include "stdlib.h"
int main() {
int a, b;
char c;
c=getchar();
scanf("%d%d",&a,&b);
putchar(c);
printf("%d,%d\n",a,b);
system("pause");
return 0;
}