I\'m having a small problem with a program I\'m working on, I keep getting the warning format \'%1f\' expects type \'float *\' but argument 2 has type \'double *\'
Use scanf("%lf", n1) for double; Note the "l" (el, not "one").
If you are new to programming, try to get familiar with documentation, e.g. cppreference. There you find, for example, the matrix of format and length specifies for scanf.
Have fun with learning programming, use google et al, and don't hesitate to ask :-)