#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *, double, double);
int /*<<< orphan*/ scanf(char *, double *, double *, double *);
int main() {
  double imposto = 0.0;
  double deposito = 0.0;
  double juros = 0.0;
  double result = 0.0;
  double rendimento = 0.0;
  scanf("%lf %lf %lf", &deposito, &juros, &imposto);
  result = deposito * juros / 100;
  rendimento = result * imposto / 100;
  printf("%.2lf %.2lf\n", rendimento, deposito + result - rendimento);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  0xe7f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  0xe64(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
addsd  -0x28(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movq   $0x0,0x10(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,(%rsp)
lea    0xec3(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    %rsp,%rdx
lea    0x10(%rsp),%rcx
call   1040 <scanf@plt>
movsd  0x8(%rsp),%xmm1
movsd  (%rsp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe92(%rip),%xmm2
divsd  %xmm2,%xmm0
addsd  %xmm0,%xmm1
mulsd  0x10(%rsp),%xmm0
divsd  %xmm2,%xmm0
subsd  %xmm0,%xmm1
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [13 x i8] c"%.2lf %.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %2
store double 0.000000e+00, double* %3
store double 0.000000e+00, double* %4
store double 0.000000e+00, double* %5
store double 0.000000e+00, double* %6
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %3, double* %4, double* %2)
%8 = load double, double* %3
%9 = load double, double* %4
%10 = fmul double %8, %9
%11 = fdiv double %10, 1.000000e+02
store double %11, double* %5
%12 = load double, double* %5
%13 = load double, double* %2
%14 = fmul double %12, %13
%15 = fdiv double %14, 1.000000e+02
store double %15, double* %6
%16 = load double, double* %6
%17 = load double, double* %3
%18 = load double, double* %5
%19 = fadd double %17, %18
%20 = load double, double* %6
%21 = fsub double %19, %20
%22 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), double %16, double %21)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%lf %lf %lf\00"
@.str.1 = [13 x i8] c"%.2lf %.2lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
store double 0.000000e+00, double* %1
%5 = bitcast double* %2 to i8*
store double 0.000000e+00, double* %2
%6 = bitcast double* %3 to i8*
store double 0.000000e+00, double* %3
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %1)
%8 = load double, double* %2
%9 = load double, double* %3
%10 = fmul double %8, %9
%11 = fdiv double %10, 1.000000e+02
%12 = load double, double* %1
%13 = fmul double %12, %11
%14 = fdiv double %13, 1.000000e+02
%15 = fadd double %8, %11
%16 = fsub double %15, %14
%17 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), double %14, double %16)
ret i32 0
}