Math, asked by sahuneeraj640, 3 months ago

Q.11 Find the total amount?
2 notes of 20000​

Answers

Answered by Ameya09
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 srivatsan100
0

Answer:20000 X 2=40000

Step-by-step explanation:

Similar questions