#include <iostream.h>
#include <conio.h>
// I made this simple programme but it always give wrong answer. Dont know what to do. Whatever values of a and b I put. It will always give 4265633.
// P.S I'm new to C++
void main()
{
int a,b,c;
c=a+b;
cin>>a;
cin>>b;
cout<<c;
getch();
}
Last edited on
Oh! It worked.Thank you so much. So kind of you to reply a noob like me :)
I just started learning a few days ago.
Btw where is the beginners forum?