标签:size ble 原来 print ali span width 多少 ++
1.利息
1 /*1年的定期利率是3.3%,那么连续自动转存3年后, 2 最初存入的x元定期会得到多少本息余额? 3 本息合计 = x(1+3.3%)^3 */ 4 5 #include<stdio.h> 6 int main() 7 { 8 int x; 9 scanf("%d",&x); 10 double amount = x*(1+0.033)*(1+0.033)*(1+0.033); 11 printf("%f",amount); 12 return 0; 13 }
2.运算符++/--
表达式 | 运算 | 表达式的值 |
count++ | 给count加1 | count原来的值 |
++count | 给count加1 | count+1以后的值 |
count-- | 给count减1 | count原来的值 |
--count | 给count减1 | count-1以后的值 |
标签:size ble 原来 print ali span width 多少 ++
原文地址:https://www.cnblogs.com/cx710828xz/p/12243161.html