Search:

Type: Posts; User: dals2002

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,496

    oh ok i get that part im going to limit my array...

    oh ok i get that part im going to limit my array to 31 numbers so i put array[32]



    int main(){
    int array[32],i,max=2147483648;
    do
    {
    printf...
  2. Replies
    3
    Views
    1,496

    Arrays/do-while loops problem

    ok so here is the problem : "Using an array, write a program to convert a decimal number (from 0 to 31) to binary number

    here is my program so far


    "libraries are included"

    int main(){
    ...
  3. Replies
    9
    Views
    2,648

    yea that gives me the remainder of the division,...

    yea that gives me the remainder of the division, it gets higher the higher the numbers, but it doesn't give me what i want which is the opposite of the remainder. i was asked in the book to use a for...
  4. Replies
    9
    Views
    2,648

    oh modulus % find the value of the remainder of...

    oh modulus % find the value of the remainder of the equation or division
  5. Replies
    9
    Views
    2,648

    i still haven't solved this problem, somehow...

    i still haven't solved this problem, somehow always all the easy stuff throws me off

    anyways, if anyone can help me with this it'll be great
    thanks
  6. Replies
    9
    Views
    2,648

    the modulus equation in that part give me ...

    the modulus equation in that part give me

    g=150/62=2.419 but the modulus sign rounds it off to the next lowest whole number

    ohhhh i see the modulus thing in the for statement inside the...
  7. Replies
    9
    Views
    2,648

    question on GCD and for loops

    ok im doing this other program on for loops for greatest common divisor, so the problem is i cant seem to display the common divisor of both numbers, so i seem to be having problems with the formula...
  8. Replies
    14
    Views
    2,976

    thanks this is very helpful :D

    thanks this is very helpful :D
  9. Replies
    14
    Views
    2,976

    well all that is left for me to say its thanks to...

    well all that is left for me to say its thanks to all that contributed and helped :D ;)
  10. Replies
    14
    Views
    2,976

    like is there any other way to like re write it...

    like is there any other way to like re write it so that instead of putchar('$') i can use like printf or something else?
  11. Replies
    14
    Views
    2,976

    wow i can't believe i missed that, i really...

    wow i can't believe i missed that, i really missed it by a long shot

    here is the finished program



    int main()
    {
    int i,j;
  12. Replies
    14
    Views
    2,976

    i kind of got it now just need to break it up...

    i kind of got it now just need to break it up which i been trying to put j-- to see if it does remove the one but i guess it doesn't, also i have another question is there anyway to write...
  13. Replies
    14
    Views
    2,976

    the second loop is exactly what i don't get how...

    the second loop is exactly what i don't get how can i change the values to printout $ signs, i get the part where i set the system to do it



    for(i=1;i<=1;i++){
    for(j=1;j<=5;j++){...
  14. Replies
    14
    Views
    2,976

    what i mean to print out is $$$$$ $$$$ $$$...

    what i mean to print out is

    $$$$$
    $$$$
    $$$
    $$

    but if i do it that way it all prints it out in a straight line down which is not really what im looking for
  15. Replies
    14
    Views
    2,976

    Help nested for loops

    so i have run into another wall, there is this problem where it tells me to print dollard signs

    Using 2 For loops printout

    $$$$$
    $$$$
    $$$
    $$
  16. Replies
    12
    Views
    1,451

    thanks guys i finally got it, it took some time...

    thanks guys i finally got it, it took some time and understanding but atleast i got it, this is my final program for those that want to look at it



    #include <math.h>
    #include <stdio.h>...
  17. Replies
    12
    Views
    1,451

    why wouldn't i run it in 1 and 0? the fibonacci...

    why wouldn't i run it in 1 and 0? the fibonacci rule says that when the fibo number is 1 then its equal to 1, and as stated in the problem the number 0 must be 1 too
  18. Replies
    12
    Views
    1,451

    so i have a question should i implement a if...

    so i have a question should i implement a if statement, just so that the first two numbers are left alone, and then put the equation in for the loop as the else statement?
  19. Replies
    12
    Views
    1,451

    Help for loops

    ok so im suppose to use fibonicci number

    "The sequence of integers 1,1,2,3,5,8,13....has been name the fibonacci sequence in honor of mathematician. the first two fibonacci numbers (0 and 1st) are...
  20. Replies
    6
    Views
    1,601

    oh nice thanks guys it worked took me a while but...

    oh nice thanks guys it worked took me a while but i got it thanks
  21. Replies
    6
    Views
    1,601

    ok i have inputed all that u guys wrote, but now...

    ok i have inputed all that u guys wrote, but now as soon as i input the Y it closes up, so why doesn't it let me pass the Y, is it not accepting the char Y?



    #include <math.h>
    #include...
  22. Replies
    6
    Views
    1,601

    What is wrong with this program

    ok so im making a purchase receipt kinda of program but everytime i try it it never works



    #include <math.h>
    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
  23. Thread: Help

    by dals2002
    Replies
    6
    Views
    1,173

    ohhh there we go i got it thanks, this one closes...

    ohhh there we go i got it thanks, this one closes at the end, thanks alot guys made my day
  24. Thread: Help

    by dals2002
    Replies
    6
    Views
    1,173

    thanks, now i only have one last question i want...

    thanks, now i only have one last question i want the program to end after i hit a key and not repeat itself
  25. Thread: Help

    by dals2002
    Replies
    6
    Views
    1,173

    Help

    ok so im very new to programming in c and i have this program called "Open Watcom", or "Miracle C" that i use for my c

    anyways to the point, when it comes to running the program, it runs it for...
Results 1 to 25 of 25