[ create a new paste ] login | about

Link: http://codepad.org/twDoCK6p    [ raw code | output | fork ]

C++, pasted on Oct 19:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>

using namespace std;

int main()
{
	for(float f = 2.05f; f <= 2.95f; f += 0.1f)
		printf("%.2f\n", f);

	cout << "\n";

	for(float f = 2.05f; f <= 2.95f; f += 0.1f)
		cout << f << "\n";

	cin.get();
}


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
2.05
2.15
2.25
2.35
2.45
2.55
2.65
2.75
2.85
2.95

2.05
2.15
2.25
2.35
2.45
2.55
2.65
2.75
2.85
2.95


Create a new paste based on this one


Comments: