Aslam-o-Aleakum Sir, main C++ main program likhta hn magar wo run ni hota or mary khayal sy sara program b theek hy main ap ko program paste kr deta hn please sir is k koi hall btayen Program: #include main() { int x; int y; int z; x=5; y=10; z=x+y; cout<<"x="; cout<
Posts: 95
Threads: 19
Joined: Oct 2010
Dear student, you have not provided the complete code. Anyways it is a simple code which has 3 variables x, y and z. Values of x and y are added up in the variable z.
using namespace std;
Code:
#include <iostream>
main()
{
int x =5;
int y= 10;
int z = 0;
z= x+y;
cout<<"x="<<x<<endl;
cout<<"y="<<y<<endl;
cout<<"z="<<z<<endl;
system ("pause");
}