Question: Write a program using Visual Studio 2017 that accepts four (4) lines of input: The first line contains a float value in 4.2f format The
Write a program using Visual Studio 2017 that accepts four (4) lines of input:
The first line contains a float value in 4.2f format The second line contains a char value
The third line contains a 4-digit int value
The fourth line contains a char value and then displays all of the input on a single line
Phone Number
Write a program that accepts a phone number of the form +1(xxx)-xxxxxxx where x is a digit, and displays the sum of all digits (x's) in the phone number.
SUBMIT BOTH PIECES IN ONE FILE LAB2.C
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
