Pages

Friday, November 1, 2013

i++

using namespace std;
int main()

{

    int sum;
    
    sum=0;
    
    cout<<"the value of sum is initially se to"<< sum <<endl;
    sum = sum + 96;
    cout<<"sum is now"<< sum <<endl;
    sum = sum + 70;
    cout<<"sum is now"<< sum <<endl;
    sum = sum + 85;
    cout<<"sum is now"<< sum <<endl;
    sum = sum + 60;
    cout<<"the final sum is"<< sum <<endl;

    
    
       return 0;
    

}

No comments:

Post a Comment