Computer Science, asked by sanvi75, 9 months ago

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 vishanksinghh
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 Anonymous
2

Error:-

cout<<Social_Science;

Correct Code :-

void main()

{

int Hindi=76;

int Social Science=90;

cout<<Hindi<<endl;

cout<<Social Science;

}

Similar questions