in need some help writing this code

This is a discussion on in need some help writing this code within the C++ Programming forums, part of the General Programming Boards category; i need to write a program that square a number like this one below in squaring a number
#include <iostream>
...

seriously, stop dumping your homework here. we aren't going to do it for you. if you're taking a class on C++, and you've gotten this far without knowing how to do this, you haven't been paying attention, or you've been pushing your homework off to forums like this.