Q.11 Find the total amount?
2 notes of 20000
Answers
Answered by
2
/* C Program to Count Total Notes in a Given Amount */
#include<stdio.h>
int main()
{
int a[8] = {500, 100, 50, 20, 10, 5, 2, 1};
int Amount, i, temp;
printf("\n Please Enter the Amount of Cash = ");
scanf("%d", &Amount);
temp = Amount;
for(i = 0; i < 8; i++)
{
printf("\n %d Notes is = %d", a[i], temp / a[i]);
temp = temp % a[i];
}
return 0;
}
Answered by
0
Answer:20000 X 2=40000
Step-by-step explanation:
Similar questions
English,
1 month ago
English,
1 month ago
Math,
3 months ago
Social Sciences,
3 months ago
Computer Science,
10 months ago
English,
10 months ago