computer sience.....

User Generated

cngb

Computer Science

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()

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

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.


Please let me know if you need any clarification. I'm always happy to answer your questions.


Anonymous
Just what I was looking for! Super helpful.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Similar Content

Related Tags