Questions tagged [lab1]

The tag has no usage guidance.

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

population lab compiles , but wrong years

it compiles but wrong years #include <cs50.h> #include <stdio.h> int main(void) { int n,e; do { n = get_int("Start Size:"); } while (n < 9); do ...
0
votes
1answer
32 views

the code which is expected and my actual code are the same but check50 see it as incorrect LAB1

#include <cs50.h> #include <stdio.h> int main(void) { // TODO: prompt for the start size int n; do { n = get_int("start size: "); } ...
0
votes
1answer
185 views

Why is my lab1 code failing to pass one test in check50?

First, let me share my code: int main(void) { int x = 1, y, n = 0, year; do { x = get_int("Enter the starting population size: "); // TODO: Prompt for start size } ...
0
votes
1answer
56 views

I don't understand the comments from check50 on my lab 1 submission. could anyone help please?

This is my code #include <cs50.h> #include <stdio.h> int main(void) { // TODO: Prompt for start size int s; do { s= get_int("Start size: "); } ...