Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gs-niteesh/378f208278c6876bad3f33fd4fc0d7bd to your computer and use it in GitHub Desktop.
Save gs-niteesh/378f208278c6876bad3f33fd4fc0d7bd to your computer and use it in GitHub Desktop.
#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