0
What are the errors of my code?
#include <iostream> using namespace std; int hitung() { int hitung(int pertama,int kedua) { return pertama + kedua; } void main() { cout << hitung(10,15); } }
3 Answers
+ 5
This is how it should be written : )
#include <iostream>
using namespace std;
int hitung(int pertama, int kedua)
{
return pertama + kedua;
}
int main()
{
cout << hitung(10,15);
return 0;
}
+ 3
You're welcome, happy coding đ
+ 1
Thanks you very much