+ 1
Whats wrong. Error shows no such file or directory
Building a program to check whether a number is Newton number or not https://code.sololearn.com/cI7WQ0CNMTAo/?ref=app
3 Antworten
+ 2
Program's logic is not correct, but besides that you have 4 errors:
1. Should be <iostream>
2. add std:: before all "cin"s and "cout"s or add a line "using namespace std;"
3. forgot a ";" after "getch"
4. int main(), not void main()
+ 1
current standard only using iostream, not iostream.h
+ 1
Luk thank-you, it worked, and I corrected the formula too..!