F*U*R*B*Y* commented on a Page, C++ variable use  -  Aug 30, 2008
//My compiler is dev c++
//Second snippet made

#include <iostream>
using namespace std;
int x,y,z;
int main(){
    cout << "Type a number. ";
    cin >> z;
    cout << "Type another. ";
    cin >> x;
    z = x*y;
    cout << "The two you entered multiplied is " << z << "\n";
    system("pause");
}

Cleaner, Easier, Nicer

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.