Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

My program not working help please.

$
0
0
I was trying to create like a test thingy but it's not working (im pretty new to c++ still). help please.


#include <iostream>


int main ()
{
int a;
int b;
int sum;

    cout<<"enter the first value\n";
cin>>a;

    cout<<"enter the second value\n";
cin>>b;

     sum = a + b;

if (sum == 3)
{
    cout<<" you won ";
}
            return 0;
}


Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>