Search:

Type: Posts; User: akis

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    376

    OK! I found my error and corrected it. Thank you....

    OK! I found my error and corrected it. Thank you. Case closed!! :)
  2. Replies
    4
    Views
    376

    laserlight Thank you for your help!!! ... nice...

    laserlight Thank you for your help!!! ... nice saying.... but I can't do that. Will you write a few sentences of code for me, and correct my code?
  3. Replies
    4
    Views
    376

    Move 0s at top of each column in a MxN array

    Hello,

    I have a matrix of NxM (the dimensions are set by the user) and I want a function to move 0s at the top of each column, and leave the rest integers as they are. Look at the example:

    ...
  4. Thread: MxN grid

    by akis
    Replies
    1
    Views
    598

    MxN grid

    Hello,

    I am trying to create a grid in C. I want the user to give the M and N, and the program should produce a MxN Grid using the characters + - | . As an example a 3x5 grid should look like: ...
  5. Replies
    2
    Views
    513

    OK I managed to solve it myself. Sorry for any...

    OK I managed to solve it myself. Sorry for any inconvenience..
  6. Replies
    2
    Views
    513

    C Read an integer and number of octades

    I' m trying to solve a problem:

    The program should read a positive integer and a number for the octades (n).

    The program should show the outcome of the value by rotating the given number by n...
  7. OK I solved it. As I said I had to solve that...

    OK I solved it. As I said I had to solve that only with ONE variable, and count only the bits at positions 2,4,6,8 of a binary code, not ALL THE BITS IN A BINARY CODE. So I CANNOT use a function, or...
  8. can you help .. ?

    can you help .. ?
  9. I also tried that but it gives me 12 as an...

    I also tried that but it gives me 12 as an outcome for the integer 170:




    #include <stdio.h>
  10. I tried it and it gives me again 0 .. I 'm...

    I tried it and it gives me again 0 .. I 'm assuming it is 0 + 0 + 0 + 0 + 0 = 0
  11. what do you mean? I have to do somewhere bit...

    what do you mean? I have to do somewhere bit shiftings or add operators ? I also tried this ... :




    #include <stdio.h>


    int main()
    {
  12. C Read an integer and count 1s only at positions 2, 4, 6 , 8 of the binary

    I tried this :



    #include <stdio.h>


    int main()
    {
    int x;
  13. C Read an integer and count 1s only at positions 2, 4, 6 , 8 of the binary

    I need help at this problem:
    I want a C program that reads an integer and counts the sum of digits at the positions 2, 4, 6, 8 of it's binary code. I have to use only one variable. For example if...
Results 1 to 13 of 14