Thanks for the help. I fixed the char problem and are working on the calculation now.
Principal and number of times are both showing as 0. Interest rate is showing at 929269760 and number of...
Type: Posts; User: Dink87522
Thanks for the help. I fixed the char problem and are working on the calculation now.
Principal and number of times are both showing as 0. Interest rate is showing at 929269760 and number of...
Hi, I am only just starting to learn C and am trying to write a simple compound interest finding program.
All 4 of the fgets/sscanf statements give this compile error, althoguh I can't work out...
Thanks. I swapped around srand and rand and I also needed to add an ampersand to guess in the scanf so it could find it I think.
/*Guess the number game v2.0*/
#include <stdio.h>
#include...
Where? It looks fine to me.
/*Guess the number game v2.0*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
Thanks for the tips with the strcpy and strcmp functions. I got the below working to some limited extent. How would I go about converting the user input to lowercase (i.e. if they enter john instead...
I am trying to run the simple program below and are receiving the errors "Lvalue required in function main()" when I am trying to reassign the variable name to something else. Why and how would I go...
Below is my first attempt at a C program (I know a couple of simple programming languages althoguh this is my first attempt at C). The aim is to be a simple Hi-Lo guessing program eventually (the...