Question: 2. Write a program that reads number between 1,000 and 999,999 (with comma) from the user and prints it without a comma separating the thousands.

2. Write a program that reads number between 1,000 and 999,999 (with comma) from the user and prints it without a comma separating the thousands. For example if the number is 123,456. First would equal 123 and second would equal 456. No-Comma-Number would be 123456.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!