SOLVE WITH ME THAT Q

Write a program to input a three integer numbers ten times (I mean ten entries and for each entry you input three numbers). Each of the three numbers is between -100 and 100 and you have to check for this validation. The program when executed will print number of negative numbers in all of the even entries and the absolute value of it. Print a message to tell the use that he/she did not input any negative numbers.


#include <vcl.h>
#include "MT262io.h"
#include <iostream.h>
#pragma hdrstop

//---------------------------------------------------------------------------

#pragma argsused
int main(int argc, char* argv[])


int number,
cin>>number;
if((number%2==0)&&(number<0)){
cout<<"the number :" ;cout<<number;
cout<<" absolute value :";cout<<abs(a);

for( x = 1 ; ix<= 10; x++ )
for( j= 1 ; ix<= 3; x++ )




CAN ANY ONE HELLP ME AND TELL ME WHERE IS MY WRONG AND I CANT COMPLET THAT QOUSTION THANKES FOR ALL
your main has no "{}"
Your if has no closing bracket.
BTW: will your if not always be false?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#include <vcl.h>
#include "MT262io.h"
#include <iostream.h>
#pragma hdrstop

//---------------------------------------------------------------------------

#pragma argsused
int main(int argc, char* argv[])


int number,
cin>>number;
if((number%2==0)&&(number<0)){
cout<<"the number :" ;cout<<number;
cout<<" absolute value :";cout<<abs(a);

for( x = 1 ; ix<= 10; x++ )
for( j= 1 ; ix<= 3; x++ )
 
I want to make sure that the solution is correct is it required in the question?
any one here
closed account (D80DSL3A)
What solution? You have posted almost nothing for code.

I replied to your other thread because your solution is nearly complete there.
I have no idea whether you found what I posted there to be useful or not though, as you have not yet replied.
Last edited on
For questions clearly
But the question remained this when you implement it does not appear as required by asking
Write a program to input a three integer numbers ten times (I mean ten entries and for each
entry you input three numbers). Each of the three numbers is between -100 and 100 and you
have to check for this validation. The program when executed will print number of negative
numbers in all of the even entries and the absolute value of it. Print a message to tell the use
that he / she did not input any negative numbers
Topic archived. No new replies allowed.