Created
June 10, 2020 09:51
-
-
Save gs-niteesh/378f208278c6876bad3f33fd4fc0d7bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <math.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <limits.h> | |
#include <stdbool.h> | |
int main() { | |
int a, b; | |
scanf("%d\n%d", &a, &b); | |
float total = (a * 0.1); | |
float total1 = (b * 0.25); | |
float total2 = total + total1; | |
printf("%.2f", total2); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment