Answer:
Written in Python:
dollars = int(input("Amount: "))
numFive = int(dollars/5)
numOnes = dollars%5
print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")
Explanation:
This line prompts user for input
dollars = int(input("Amount: "))
This line calculates the number of 5 that can be gotten from the input. This is done using integer division
numFive = int(dollars/5)
This line gets the remaining ones. This is done by using the modulo sign to get the remainder when input is divided by 5
numOnes = dollars%5
This line prints the required output
print(str(dollars)+" yields "+str(numFive)+" fives and "+str(numOnes)+" ones.")
You know that means if you use c++
you need to put something in this
#include<iostream>
using namespace std;
int what_ you_ want;
int main ()
{
cout<<"WHAT DO U WANT"; cin>>what_you_want;
if (what_you_want<1000)
and then use {, else, } return 0;
but it is good for c++
It means that the row or column which comes after the dollar sign is anchored or absolute.
B. spreadsheet is the answer