前言
博主简介:本人是计算机专业,大二学生。
博客主要记录一些代码,主要是语言语法和数据结构方面。
希望和大家一起学习,一起加油,一起进步!
运行截图
源代码
#include<stdio.h>
int main(void)
{
double price =10.0;
long count=5;
float ship_cost=2.5;
int discount=15;
double total_cost=(count*price+ship_cost)*(100-discount)/100;
printf("%.10f",total_cost);
return 0;
}
感谢阅读