[ create a new paste ] login | about

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

C++, pasted on Mar 23:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
using namespace std;

int main()
{
	int x,y;
	cout << "Nhap x: "; cin >> x;
	cout << "Nhap y: "; cin >> y;
	double d = static_cast<double>(n1) / n2;

	cout << d << endl;

	return 0;
}


Output:
1
2
3
In function 'int main()':
Line 9: error: 'n1' was not declared in this scope
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: