underline the error (if any) in the following code and rewrite the correct code (consider header file(s) and getch() in each code);
fast plz.
Attachments:
Answers
Answered by
1
Answer:
Explanation:
#include <iostream>
using namespace std;
int main(){
//we will put int at place of void because we need an output
int Hindi = 76;
int social_science = 90;
//variable cannot have space so put an underscore
cout<<Hindi<<endl;
cout<<social_science;
}
Answered by
2
Error:-
cout<<Social_Science;
Correct Code :-
void main()
{
int Hindi=76;
int Social Science=90;
cout<<Hindi<<endl;
cout<<Social Science;
}
Similar questions
Hindi,
4 months ago
Physics,
4 months ago
English,
4 months ago
English,
9 months ago
Social Sciences,
1 year ago
Physics,
1 year ago
Accountancy,
1 year ago