Hello,
Everybody thanks for the help.
I have to use loops because im now reading the chapter about loops.
Roelof
Type: Posts; User: roelof
Hello,
Everybody thanks for the help.
I have to use loops because im now reading the chapter about loops.
Roelof
Hello,
I have simplified things because they don't work.
The right formula is : 1 + 1/1 + 1/(1*2) + 1/ (1*2*3) + 1/ (1*2*3...*n)
Roelof
hello,
I have to calculate the mathetical e.
So I have this :
*/
#include <stdio.h>
Hello,
if (teller > 7) {
begin = 0 ;
}
Was a left over from a another try.
I understand that
Roelof
Hello,
When I know how to do that in vim I can do that.
Roelof
I only have to know if the outcome will be 0 because then I need to do a newline.
The other numbers are not important
Roelof
Oke,
I have changed it and now getting this output:
uitkomst : 2.000000
1 uitkomst : 3.000000
2 uitkomst : 4.000000
3 uitkomst : 5.000000
4 uitkomst : 6.000000
Hello,
Another thing I don't get.
I have now this :
#include <stdio.h>
int
Thanks.
Now I can try to solve the other problems.
Roelof
hello,
I have to make a calender in C.
The user has to enter the number of days in that monts and which day the month starts.
So I made this :
/*
*...
For me there is no problem
Roelof
Oke,
I think I choose for readable code.
I will look if I can adapt the template that the vim plugin uses.
Roelof
Roelof
Hello Commontator,
You are right.
I was thinking way to far.
This is mu solution :
#include <stdio.h>
#include <stdlib.h>
Hello,
I have looked back and use there a array of chars. char[++] = number%2
I wonder if this can be working without a array because in this nook array are not described.
I agree with a array...
Hello,
I have this exercise :
Make a programm where the user enters a number and the programm reverse the number.
I must work with 2 ,3, 4 or more numbers.
Hint : Use a do loop that...
you are welcome
Roelof
Commontator:
Here 1 link I found the book : C Programming: A Modern Approach, 2nd Edition (Repost)
Roelof
Hello,
Yep, a lot of fun.
I can send you a pdf copy of the book im following.
Next chapter is about the data types with a lot of execting exercices.
Roelof
next 2 assigments are :
1) Write a program that's ask a user to enter a fraction, then reduces the fraction to the lowest term.
That's a easy one. I only have to change some things in the GCD...
Oke,
and any remarks on my program where I can learn things.
Roelof
Commontator :
I don't get it what you mean with your message.
Roelof
oke,
Let's say we use the numbers 210 and 57
So uitkomst will be 210 / 57 = 3
rest will be 210 - 3*57 = 39
tmp = 57
getal2 = 57
getal1= 39
uitkomst = 57 / 39 = 1
rest = 57 - 39 = 18
Hello,
I have made a programm which calculated the GCD of two numbers.
#include <stdio.h>
Hello,
Oke,
I will study it.
Everyone thanks for the help and patience.
Roelof