• how to find out the missing value in the array in cpp?

    #include

    using namespace std;

    int main()
    {

    int a[20],i,n,t,j,k;
    cin>>t;

    for(i = 0;i>n;

    int arr[20] = {};
    for(k = 0;k>a[k];
    }

    for(j=0;j<n-2;j++){
    if((a[j+1]-a[j])!=1)…Read More

  • UNDERSTANDING PROGRAMMING
     
    Let’s take a look at our very first program and discuss all the things about it:
     
    // first program

    #include

    int main()

    {

       cout

    Understanding Programming

    UNDERSTANDING PROGRAMMING   Let's take a look at our very first program and discuss all the things about it:   // first program #include <iostream.h> int main() {    cout<<"Hello World";    return 0; }   Output- Hello World       Let's now understand its the meaning of each instruction.     //first program - This is a c++ comment....

    read more

Verified Users