Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
340 B
1
Indexable
Never
#include <stdio.h>

int main() {
    float a, b, c;
    printf( "Nhap so von dau tu: " );
    scanf("%f%f%f", &a, &b, &c);
    
    float interest = (a * 0.1) + (b * 0.1) + (c * 0.1);
    
    printf("\nTong so lai qua cac nam la: %.2lf", interest );
    
    printf("\nTong von va lai la: %.2lf", interest + (a + b + c) );

    return 0;
}
Leave a Comment