Search:

Type: Posts; User: Spink85

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,298

    Switch Statement (For Beginner)

    Sorry, beginning programmer. Assignment: Take an integer keyed in from the terminal and extract and display each digit of the integer in English. Ex. 932 --> nine three two


    /*This program takes...
  2. Thread: Using Loops

    by Spink85
    Replies
    7
    Views
    2,772

    Thank you atac and Dakshin for your help. I just...

    Thank you atac and Dakshin for your help. I just have one problem; the assignment says I'm not allowed to use a break. If I used a while ... loop for a number greater than 10, it would just go on...
  3. Thread: Using Loops

    by Spink85
    Replies
    7
    Views
    2,772

    Okay, I rewrote it to start with a for... loop...

    Okay, I rewrote it to start with a for... loop statement. What would my other loop look like if a user entered a number over 10?

    Thanks for your help!




    #include <stdio.h>

    int main(void)
  4. Thread: Using Loops

    by Spink85
    Replies
    7
    Views
    2,772

    Thank you for your feedback. I'm sorry, I'm still...

    Thank you for your feedback. I'm sorry, I'm still so new to this so I don't fully understand. I can get rid of the do .... while loop, but then I'm going to need another one since the assignment asks...
  5. Thread: Using Loops

    by Spink85
    Replies
    7
    Views
    2,772

    Using Loops

    I'm in an intro computer science class so I'm very new to programming. Below is the assignment. I did get my program to compile, but it doesn't work properly when you first enter a number between 1...
  6. I just tried to compile it again and it worked...

    I just tried to compile it again and it worked this time. Not sure what happened before. Sorry, I'm really new to this and I think I was thinking too hard about the final printf statement - I just...
  7. C Beginner - Fahrenheit and Celsius Converter

    I apologize, I am new to C programming. I know my current program will not compile. Can anyone give me insight into what I can do to fix it? Specifically, how can I store the the start temperature so...
Results 1 to 7 of 7