Answer the question
In order to leave comments, you need to log in
Visual Studio 2017 .exe file not being created.?
How I created the project:
File - Create - Project...
In the settings I specify "clean project"
Then I create a file:
Project - Add new element...
Visual c++ - File c++, click add.
I am writing a program:
#include <iostream>
using namespace std;
void main(); {
int a, b, c, d;
cout << "Enter the 1st number: ";
cin >> a;
cout << "Enter the 2nd number: ";
cin >> b;
c = a^b;
cout << a << " to the power of " << b << " equals: ";
cin >> d;
if (c == d) cout << "Correct!";
else if (c > d) cout << "Your answer is lower!";
else cout "Your answer is bigger!";
system("pause");
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question