#include <stdio.h> int main(){ double r = 0.0; int m = 0; int d = 0; int q = 0; scanf("%lf %d ...