blob: 33b4039db84a323a1f06adc99b62f0f4df41fe5c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// Lab2Ansari.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include <iomanip>
using namespace std;
using std::ios;
int main()
{
float personTemp;
cout << "Enter your temperature: " << endl;
cin >> personTemp;
cout.setf(ios::fixed);
cout << setw(6) << setprecision(1) << personTemp << endl;
}
/*
int age = 18;
int daysInYears = 365;
cout << age * daysInYears;
*/
//char ascii = 67;
//cout << ascii << '\n';
//ascii = 43;
//cout << ascii << '\n';
//cout << ascii << '\n';
//return 0;
|