Thread: Help on a code problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2007
    Posts
    18

    Help on a code problem

    Well, i got this when i try to compile this piece of code:
    Code:
    #include <stdio.h>
    
    void main()
    {
         int first,second;
         printf("please enter the first number: ");
         scanf("%d", &first);
         printf("please enter the second number: ");
         scanf("%d", &second);
         printf("The sum of the numbers is %d\n",
                                     first+second);
    }
    I currently use Dev-CPP, and i tryed it on a friend's Visual C++, almost same results.


    P:S
    What is the best IDE and compiler to use for learning C? (Cost is unimportant)
    Last edited by Denisius; 01-04-2007 at 07:28 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code problem
    By sybariticak47 in forum C++ Programming
    Replies: 9
    Last Post: 02-28-2006, 11:50 AM
  2. Problem with game code.
    By ajdspud in forum C++ Programming
    Replies: 5
    Last Post: 02-14-2006, 06:39 PM
  3. problem with selection code
    By DavidP in forum Game Programming
    Replies: 1
    Last Post: 06-14-2004, 01:05 PM
  4. Replies: 5
    Last Post: 12-03-2003, 05:47 PM
  5. Help with code for simple Y2K problem
    By Mule in forum C++ Programming
    Replies: 3
    Last Post: 03-06-2003, 12:53 AM