Why is this wrong?

Im using c language. It says theres a syntax error before on the second printf.

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
int distance;
int speed;

printf("Enter a speed:");
distance = (speed * 15)

return 0;
closed account (Dy7SLyTq)
look at line 11. its missing a ; and system("pause") (which shouldnt be used (there are better ways to pause a program) has an extra
You forgot to place a semicolon after statement

distance = (speed * 15)
Thank you that fixed it
Topic archived. No new replies allowed.