konekohime
February 19th, 2008, 12:40 PM
I am new to writing code.
That being said, I run the *.exe and it executes however there is no output
I have the code copied line for line, I've triple checked and had a friend who writes code for a living check. It compiles, no errors found.....
But no output either.
I think I may have had this issue with the compiler before, but don't remember. I am using dev-c++ 4.9.9.2
/* demonstating paraments */
#include <iostream>
using namespace std;
void mul(int x, int y); //mul prototype
int main()
{
mul(10, 20); //calling mul function
mul(5, 10);
mul(23, 72);
return 0;
}
void mul(int x, int y)
{
cout << x * y << " ";
}
That being said, I run the *.exe and it executes however there is no output
I have the code copied line for line, I've triple checked and had a friend who writes code for a living check. It compiles, no errors found.....
But no output either.
I think I may have had this issue with the compiler before, but don't remember. I am using dev-c++ 4.9.9.2
/* demonstating paraments */
#include <iostream>
using namespace std;
void mul(int x, int y); //mul prototype
int main()
{
mul(10, 20); //calling mul function
mul(5, 10);
mul(23, 72);
return 0;
}
void mul(int x, int y)
{
cout << x * y << " ";
}