Sponsored Links


Results 1 to 2 of 2

Thread: C++ main program likhta hn magar wo run ni hota

  1. #1
    sana.pari
    Guest

    28 C++ main program likhta hn magar wo run ni hota

    Sponsored Links1


    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<

    Sponsored Links

  2. #2
    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");
    }

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 09-23-2014, 02:08 AM
  2. Replies: 0
    Last Post: 08-30-2014, 12:38 AM
  3. Kash tu mera Pyara Bakra hota Main tuj ko Ghass Khilata
    By Vuhelper in forum Eid Celebration
    Replies: 0
    Last Post: 08-27-2014, 01:22 AM
  4. Kash Is Eid Pe Tu Mera Bakra Hota Or Kisi Ne Nahi Main
    By Vuhelper in forum Eid Celebration
    Replies: 0
    Last Post: 08-26-2014, 11:56 PM
  5. Replies: 0
    Last Post: 04-24-2011, 02:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft | Jobs