Compile the code and look at the compilation errors (and warnings). That will tell you what the problem is.
You have to use the right names and syntax.
- It's not <lostream.h> but <iostream>.
- There supposed to be no semicolon (;) after the int main()
- It's not end1, but endl (or rather std::endl)
- 'â€œ"Nilai Yg Di Masukkan Salah"` has some extra characters before `"Nilai Yg Di Masukkan Salah"`, remove them.