Question:

Simple C program errors?

by  |  earlier

0 LIKES UnLike

I'm trying to get this program to generate the answer to an equation. What am I doing wrong?

#include <stdio.h>

main() {

int a = 5;

int b = 1;

int x = 10;

int y = 5;

int f;

f = (a - b) * (x - y);

printf("\nThe value of f is "%d, f);

}

 Tags:

   Report

1 ANSWERS


  1. What error do you get?

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.