Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 48 characters in body
Source Link
Cliff B
  • 69.3k
  • 4
  • 35
  • 56

This is where my issue is coming from

// TODO: Calculate number of years until we reach threshold int n = start; int years = 0; while (start < end) { n = n + (n / 3) - (n / 4); years++; } // TODO: Print number of years printf("Years: %i/n", years); }

// TODO: Calculate number of years until we reach threshold int n = start; int years = 0; while (start < end) { n = n + (n / 3) - (n / 4); years++; } // TODO: Print number of years printf("Years: %i/n", years); } 

Something seem to be wrong but I can't figure it out. It compiling all code except the "Years". I'm not getting an answer after the division. Please help

This is where my issue is coming from

// TODO: Calculate number of years until we reach threshold int n = start; int years = 0; while (start < end) { n = n + (n / 3) - (n / 4); years++; } // TODO: Print number of years printf("Years: %i/n", years); }

Something seem to be wrong but I can't figure it out. It compiling all code except the "Years". I'm not getting an answer after the division. Please help

This is where my issue is coming from

// TODO: Calculate number of years until we reach threshold int n = start; int years = 0; while (start < end) { n = n + (n / 3) - (n / 4); years++; } // TODO: Print number of years printf("Years: %i/n", years); } 

Something seem to be wrong but I can't figure it out. It compiling all code except the "Years". I'm not getting an answer after the division. Please help

Source Link

can't check until lab turns upside down lab 1

This is where my issue is coming from

// TODO: Calculate number of years until we reach threshold int n = start; int years = 0; while (start < end) { n = n + (n / 3) - (n / 4); years++; } // TODO: Print number of years printf("Years: %i/n", years); }

Something seem to be wrong but I can't figure it out. It compiling all code except the "Years". I'm not getting an answer after the division. Please help