Search:

Type: Posts; User: jorgejags

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,556

    yeah. the scanf works right i checked it. tje...

    yeah. the scanf works right i checked it. tje while loop assigns the elements arrays. but the for loop that is suppose to give me the summation doesnt work. since i say sum=1 it gives me 1 when i...
  2. Replies
    4
    Views
    1,556

    help with for loop with arrays

    can someone tell me what am i doing wrong with for loop. its not returning what its suppose to. everything else works except for that.



    #include <stdio.h>

    int min();
    int max();

    main()
  3. thanks.

    thanks.
  4. yeah those are the index of the array.

    yeah those are the index of the array.
  5. how do you input data from a file into an array?

    how do you take data from a file and inputted into an array if the data in the file were to look like this

    1 1 1
    2 1 1
    3 1 1
    4 1 1
    5 1 1...
  6. Thread: caesar shift

    by jorgejags
    Replies
    3
    Views
    2,747

    nevermind i figured it out

    nevermind i figured it out
  7. Thread: caesar shift

    by jorgejags
    Replies
    3
    Views
    2,747

    caesar shift

    ok i am trying to write a program that does a Caesar shift. i am doing the numbers first for example if i have 1456 and i shift every number by 3 i'll get 4789.

    so what i got so far is this. So...
  8. Replies
    4
    Views
    1,927

    i dont understand the problem

    it says,

    Write a program to identify the number of bits allocated for a variable of data type “short int”. You are told that computing system employs 2’s complement notation for storing negative...
  9. that made it work. but how do i make it work...

    that made it work. but how do i make it work without adding -lm nevermind i got it thanks.
  10. is this what you wanted. i'm a new at this so...

    is this what you wanted. i'm a new at this so dont much.


    jgnlez@shellfish:~/ece175> od -t x1 num-digits.c | head > numbytes.dump
    jgnlez@shellfish:~/ece175> cat numbytes.dump
    0000000 23 69 6e...
  11. yeah it works on windows but it doesnt want to...

    yeah it works on windows but it doesnt want to compile on unix. hmm i wonder what it is
  12. it just doesnt compile. it gives me this when i...

    it just doesnt compile. it gives me this when i try to compile it. i am using unix

    > gcc num-digits.c
    Undefined first referenced
    symbol in file...
  13. i cant figure out whats wrong with it any help please

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

    int main()
    {
    int x, a, b, c, d;

    printf("Please enter a number>");
    scanf("%d", &x);
  14. well i would like to the learn how to do the...

    well i would like to the learn how to do the short way but at the time i cant think of how to do it. anyone have a clue?
  15. how do you take an integer and outputed in words?

    i need to write a program that takes an integer from -99 to +99 as input and outputs the number in words. If the input is outside this range, the program should print that it is outside the range. ...
  16. alright thanks. i got how to do it

    alright thanks. i got how to do it
  17. how exactly would it start though?

    how exactly would it start though?
  18. decimal to number if digits in different bases

    anyone knows how they would start this off?

    I need a which will take a decimal positive integer x then the program prints the number of digits required to represent the decimal integer x in...
  19. Replies
    4
    Views
    1,870

    need help separating a real number

    ok

    its for a programming C class not sure how to do this so whoever can lend a hand i'll appreciate it. here is the assignment.


    Write a program that takes a real number as input and prints...
Results 1 to 19 of 19