lol I did try it on my compiler but it came up as
Invalid Operands to Binary %
Type: Posts; User: DJ_Steve
lol I did try it on my compiler but it came up as
Invalid Operands to Binary %
would that mean I could just use
"rem = num1 % num2;"
instead?
@ Tabstop - lol thanks, I probably would have never noticed that
@ Rocky - I've seen a lot of people using that actually but it just confuses me :/
I will work on my code a little longer...
Write a C program that reads in two numbers, calculates the modulus of the two and prints out the result. You must use at least three functions (plus main) in your program, however, you must not use...
ok!
thanks for help guys! Its starting to work a lot better now :D
Hello
I'm currently working on a program that when you input a number in Kelvin, it will give u the temperature in either Farenheit or Celcius then tell you what state its in (liquid, solid, gas)...
Is there an easy way to convert programs into modular? I just realised my code has to be in modular and have no clue how to convert my code easily
#include <stdio.h>
#include <conio.h>...
ahh thanks for the help!
Its all sorted now :D
Ok, I just put if statements for 'press q at any time' but im still having the same problem with an Equal Triangle
Hello, I'm currently working on a program that reads in 3 numbers then tells you what triangle it is or if its invalid
I'm pretty much nearly finished except I need help on 2 things
...
Well I'm not sure if I'm on the right track or If I way off but this is what I have so far
#include <stdio.h>
#include <ctype.h>
void step1()
{
double temp;
ahhh it worked!
thanks! I must have edited it without thinking, I would have never known that was the reason why the menu displays twice
thanks! :D
hey shir, thanks for all the help you've given me. My program was working perfect just a second ago and then I went to run it again and my main menu keeps being displayed twice in a row for some...
last snippet?
hmm, how would I go back to loop 1 after the person has selected an option?
I know that return; will go back to int main() so I replaced break; with return;
the problem is that, it goes back...
wow, you seemed to ease through that, thanks! :D
my loop was way off :(
lol :(
ok, this is what I have so far...
#include <stdio.h>
#include <ctype.h>
void step1()
{
char letter;
Can anyone give me any tips on a link to a tutorial that would enable me to
"Read in a positive number between 1-50 and display all numbers from 0 up to the number entered. E.g. if the user enters...
ack, I thought that would be the problem but when I tried it, it still didn't work.
I just realised I missed out the ; at the end of it last time!
it works now, thanks :D
Hello, just wondering if anyone could help with me a piece of code
#include <stdio.h>
#include <ctype.h>
void step1()
{
printf("You have 3 choices\n");
Yes!!! I did it!
Thanks everyone :D
ahh that is a good week of frustration gone :D
I keep getting the same problem with getting spammed Ascii Value = >number<
!
#include <stdio.h>
#include <ctype.h>
int main()
wow, thanks for all that MTK! I knew it would be something to do with the curly brackets but everytime I moved them about it never worked :(
yeah I hadn't included the switch case in the code yet...
ahh thanks for that MTK
at the moment my current code is
#include <stdio.h> /* Standard Input/Outut */
#include <ctype.h> /* I don't know what this means, I know it should be there tho*/