Thread: Need help on C programming

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Casual Visitor
    Join Date
    Oct 2001
    Posts
    350
    I'd imagine anything is possible with a bit of effort.

    Code:
    #include <stdio.h>
    
    int main(void)
    {
       // declare variables
       // show prompt(s)
       // receive and validate input
       // compare input and assign output
       // show output
    
       return 0;
    }
    Give it a try and post your code if you get stuck.
    I haven't used a compiler in ages, so please be gentle as I try to reacclimate myself. :P

  2. #2
    Registered User
    Join Date
    Jan 2013
    Posts
    28
    I already have a working code, but it does not look aesthetic due to using too many if() and else if(), I am learning it by myself and right now I am reading on swap() which I think it can be used to determine the largest and smallest numbers, but I can't get it to work

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 09-11-2012, 01:03 AM
  2. Replies: 4
    Last Post: 12-11-2011, 04:25 PM
  3. small programming job VCPP / Object Oriented Programming
    By calgonite in forum Projects and Job Recruitment
    Replies: 10
    Last Post: 01-04-2006, 11:48 PM
  4. Total newb to programming here... Question about the many programming languages. Ty!
    By tsubotakid1 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 10-05-2003, 10:32 AM