Write the C program that receives the number of coffee cups and teacups. The program shows the TOTAL price after user press Enter. The price for one cup of coffee is $35, one cup of tea is $25
寫一個計算咖啡跟茶的總計
Example input:
3 2
Example output:
155
Hidden content!#include<stdio.h>int main(){ * * * * * * * * * ** * * cup_tea; * * ** * ** * *** * ** * * * * cup_coffee;** * * ** * * * * * ** total_price;* * * * * * *** * * ** * * * ** * * * ** *** * * * * * * * * * *** ** * * ***** * ** * * * * * * * * *** * * ** * * * * * * ** * * ** ** * ** * * * * 0;}
Hidden content! * * **** * * ** int main (){* * ** * * * coffee,tea,total; ** ** * ****** * ** * * * * * * ** *** ** * * ** * * ** * * * * * * * * * (coffee*35) + (tea*25); * ** * * ** * * * **** * * ** * * ** * * * * * * **** ** * * * 0;}
Hidden content!* * * *** * ** *int main(){ * * * * * * * * * * * * coffee,tea,total;* * ** * * * * * * **** * * &coffee,&tea);