Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "stdafx.h"
- using namespace std;
- void showSquare(int);
- int main()
- {
- int value;
- int total;
- cout << "Square a number." << endl;
- cout << "Enter a number: " << endl;
- cin >> value;
- cout << "The square is " << total << endl;
- return 0;
- }
- void showSquare(int);
- {
- total = value * value
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement