We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35cbce9 commit 3423b79Copy full SHA for 3423b79
Beginner/Total Expenses (FLOW009)/expenses.c
@@ -0,0 +1,13 @@
1
+#include<stdio.h>
2
+
3
+int main(){
4
+ int t,quant,price;
5
+ printf("Enter the total number of test cases: ");
6
+ scanf("%d",&t);
7
+ while(t>0){
8
+ printf("Enter the quantity and price:");
9
+ scanf("%d%d",&quant,&price);
10
+ printf("%f\n",(float)(price*quant));
11
+ t--;
12
+ }
13
+}
0 commit comments