Quick actions

cmd+k|ctrl+k

Navigation

Languages

log3_86

Snippet info

Language

Cpp

Visibility

public

Author

matho.camara

Created

2018-10-23T17:14:17Z

Updated

2018-10-24T09:16:52Z

#include <iostream>
using namespace std;

int main() {
   int table[3];
 
 // to store the numbers
	cout << "Input a,b and c values"<<endl;
	for(int i=0;i<3;i++)
	{
	    cin>>table[i];
	}
    
     //checking for negative numbers
     cout<<"Negative numbers:"<<endl;
	for(int i=0;i<3;i++)
	{
	   if(table[i]<0)
	   cout<<table[i]<<endl;
	}
    return 0;
}
INFO