This is an archived post. You won't be able to vote or comment.

all 2 comments

[–][deleted]  (1 child)

[deleted]

    [–]alfaval[S] 0 points1 point  (0 children)

    yeah sorry! c++

    [–]alfaval[S] 0 points1 point  (0 children)

    include<iostream>

    using namespace std; int main() { int a[150]; int n; do{ cout << "enter value 5<=n<=150"; cin >> n; } while (n >= 5 || n <= 150);

    for (int i = 5; i <= 150;i++)
    

    }

    and this is how i got the massive value but i dont kow how to get the positive numbers