Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Program: Lab03.cpp
- // Filename: Lab03.cpp
- // Author: Marilyn
- //Due Date: 11 Feb 2011
- // Description: Lab 03
- #include "stdafx.h"
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- int i=0;
- int x;
- cout << "Enter the number you would like to square:";
- cin >> x;
- for (;i=x*x;)
- cout << "Enter the number you would like to cube:";
- cin >> x;
- for (;i=x*x*x;)
- {
- cout << " i= " << i << endl;
- }
- cout << "after the loop i = " << i << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement