Description
Write a python program to convert from cents to dollars and cents. Your program should ask the user for the number of cents and output the resulting number of dollars and cents?
answer like this
example / like this
def ShowResults(Radius, Diameter, Circumference, Area):
print("The Diameter is",mydiameter)
print("The Circumference is",mycircumference)
print("The Area is",myarea)
main()
Explanation & Answer
Thank you for the opportunity to help you with your question!
#include<stdio.h>
int main()
{
int input;
int resultCent;
int resultDollar;
printf("Enter dollars convert to cents :");
scanf("%d",&input);
resultCent = input * 100;
printf("After conversion : %d",resultCent);
printf("Enter cents convert to Dollar :");
scanf("%d",&input);
resultDollar = input / 100;
printf("After conversion : %d",resultDollar);
}
Hi Friend,
Above code is in c language.
I am good at C,C++ language.
I will help you out with programming learning.
Please let me know if you have any question i will get back to you as early as possible.