int n1=7,n2=2;float f1=7.0,f2=2.0;printf ("整数相除,得到商数:%d\n",n1/n2);printf ("整数求余,得到余数:%d\n\n",n1%n2);printf ("正负整数相除,得到商数:%d\n",(-n1)/n2);printf ("正负整数求余,得到余数:%d\n\n",(-n1)%n2);printf ("两个浮点数相除,得到商数:%f\n",f1/f2);printf ("浮点数除以整数,得到商数:%f\n",f1/n2);printf ("整数除以浮点数,得到商数:%f\n",n1/f2);