Exforsys
+ Reply to Thread
Results 1 to 2 of 2

please simplify this code. i am unable to understand it... but your team has done a great work.

This is a discussion on please simplify this code. i am unable to understand it... but your team has done a great work. within the C and C++ forums, part of the Programming Talk category; #include <iostream.h> int Exforsys[ ] = { 10,20,30,40,50}; int i, outp=0; void main() { for(i=0;i<5;i++) { outp=outp+ Exfosys[i]; } cout<< ...

  1. #1
    katika is offline Junior Member Array
    Join Date
    Mar 2011
    Answers
    1

    Post please simplify this code. i am unable to understand it... but your team has done a great work.

    #include <iostream.h>
    int Exforsys[ ] = { 10,20,30,40,50};
    int i, outp=0;
    void main()
    {
    for(i=0;i<5;i++)
    {
    outp=outp+ Exfosys[i];
    }
    cout<< outp;
    }#include <iostream.h>
    int Exforsys[ ] = { 10,20,30,40,50};
    int i, outp=0;
    void main()
    {
    for(i=0;i<5;i++)
    {
    outp=outp+ Exfosys[i];
    }
    cout<< outp;
    }


  2. #2
    swapwarick's Avatar
    swapwarick is offline Member Array
    Join Date
    Mar 2011
    Location
    Pune,India
    Answers
    37
    #include <iostream.h>;
    int Exforsys[ ] = { 10,20,30,40,50};
    int i, outp=0;
    void main()
    {
    for(i=0;i<5;i++)
    {
    outp=outp+ Exfosys[i];
    }
    cout<< outp;
    }


    seems to meeee like this only!!


Latest Article

Network Security Risk Assessment and Measurement

Read More...