count the number of notes in a given amount c#
int a[8]={500,100,50,20,10,5,2,1},m,temp,i;
printf("Enter the amount:");
scanf("%d",&m);
temp=m;
for(i=0;i<8;i++)
{
printf("\n%d notes is:%d",a[i],temp/a[i]);
temp=temp%a[i];
Also in C#:
- fieldconverter c#
- unity find object by name
- open link c#
- move towards target unity
- list c#
- how to close a form c#
- c# get executable path
- c# webcam
- how to convert string to bool c#
- Microsoft.AspNetCore.Components.Forms.InputSelect`1.TryParseValueFromString(String value, TValue& result, String& validationErrorMessage)
- unity array of child objects
- copy a list C#
- get variable from another script unity
- how to load the active scene unity
- c# shorten an method
- unity movement on forward
- c# double value with 2 decimal places
- how to work with ascii in c#
- How to get the world position of the edge of an object?
- multidimensional meaning
- How to look at an object unity
- show double in textbox c#
- c# multiple catch exceptions
- unity resources load