Questions tagged [expression]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
274 views

cs50 pset 1 greedy algorithm

#include <cs50.h> #include <stdio.h> #include <math.h> int main(void) { float y; do { y = get_float("Change: "); } while (y < 0); printf("%f\n", y * 100); ...
0
votes
1answer
2k views

How to fix the "expression result unused" compilation error?

When I try to run this code through the compiler, I get the error: expression result unused referring to the line cents - 25; How do I fix this error? How exactly do I "use" the expression ...
0
votes
1answer
692 views

Error: Expected Expression

During Problem Set i came across the error Expected Expression on the statement "string s = GetString();" Suggestions would be appreciated. The code is provided below. #include <cs50.h> #...