Question: Please fix the error (below) in the java for this .c program Source code: #include int main() { int a, j = 3, tally, b;

Please fix the error (below) in the java for this .c program

Source code:

#include int main() { int a, j = 3, tally, b; printf("Enter the number of prime numbers: "); scanf("%d",&a); /* will take user input */ if ( a >= 1 ) { printf("First %d prime numbers are :",a); printf("2 "); } for ( tally = 2 ; tally

Error:

Please fix the error (below) in the java for this .c program

. /prime. c: . /prime . c : line line (' 3: 3 : syntax error near unexpected token int main ( )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!