Main.cc: In function 'int main()':
Main.cc:6:19: error: invalid operands of types 'double' and 'double' to binary 'operator%'
printf("%.2lf",a%b);
^
Main.cc:5:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf %lf",&a,&b);
^