Question: Write a program in C++ that reads a float number from the input and prints the integer part of this number on the screen. Sample

Write a program in C++ that reads a float number from the input and prints the integer part of this number on the screen. Sample run: Input a number: 123.87 The integer part of the number is 123

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!