Monday, 16 February 2015

Write a program in c++ to Find negative number in array

Structure of the Problem Requirements

This Program find negative number in C++ program . The Program asked user to enter some positive and negative numbers . After this the program will display that number which are less than zero.

Source Code

using namespace std;
int main ()
int num [7];
for (int i =0;i<7;i++)
cout<<" Enter Your Number : ";
cout<<" The Negative Numbers are : \n ";
for (int i =0; i<7; i++)
if ( num[i]<0)

Output of the Program

Find negative number in array

Share it Please

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.


Post a Comment