mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
12 lines
228 B
C
12 lines
228 B
C
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
double test = 0.0;
|
|
double test2 = 0.0;
|
|
scanf("%lf\n%lf", &test, &test2);
|
|
double sum = test+test2;
|
|
int intsum = (int)sum;
|
|
printf("%f\n%d", sum,intsum);
|
|
return 0;
|
|
}
|