Computer Science, asked by geetarawat3676, 1 year ago

Rewrite the correct code after removing errors from the given code. (consider header files and getch ( ) in each code)
(a)
void main( )
{
inta=5, b=6
a=a+2;
c=a+b;
cout<<c;
}

(b)
void main ( )
int x=2,y=3:
x=x+y;
y=y-1;
cout<x<y;
}

(c)
void main()
{
int c ;
int a, b ;
c=(a>b):1?2
cout<<c;
}

(d)
void main ( )
{
int a=2,b=6.c;
c=b%a;
if(c =!3)
cout<<"BHEL";
else
cout<<"Haridwar";
}

(e)
void main()
{
int a=10,b=12;
int c==a+b;
cout<<c;
}

(f)
void main ( )
{
int a,b,c;
cout<<"Enter numbers";
cin>a>b;
a=a+2;
b=b+3;
cout<<a+b;
}
CORRECT ANSWERS
=
BRAINLIEST ANSWERS​

Answers

Answered by anupama777vidya
1

Answer:

Heyy there here's ur answer

Refer to the attachment

Hope it helps you

Attachments:
Similar questions