#include <iostream.h>
int main()
{
int month, day;
cout << "Enter a month (use a 1 for Jan, ect.): ";
cin >> month;
cout << "Enter a day of the month: ";
cin >> day;
Type: Posts; User: jeffcoulter
#include <iostream.h>
int main()
{
int month, day;
cout << "Enter a month (use a 1 for Jan, ect.): ";
cin >> month;
cout << "Enter a day of the month: ";
cin >> day;
Using an If statement how could I go about detecting a decimal enter by the user?
Basically I am writing a program that prompts the user to enter the month and date and I want to be able to...
Ok Basically when I am run the program it will add both numbers 1.67 + 1.32 and give the result 3.00. Clearly, the sum of the displayed numbers should be 2.99 and not 3.00. The problem is that...