Thread: Problem in first program

  1. #1
    Registered User
    Join Date
    Nov 2016
    Posts
    1

    Problem in first program

    Hello , im new here and i new in programing.
    Just started to learn c programing.
    And i have problem while i try to debug.
    I add a photo, hope you can help me !

    thanks ,
    Guy
    Attached Images Attached Images Problem in first program-screen-shot-2016-11-20-12-11-29-jpg 

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,666
    Try includeing stdio.h as well.

    Also, successful return from main should be return 0;
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2016
    Posts
    2
    You forgot ; <stdio.h> it means standart input and output library
    So , if compiler don't know what is printf and scanf how it suppose to execute your program P:

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A problem with a c program HELP
    By osaea in forum C Programming
    Replies: 5
    Last Post: 08-20-2011, 07:49 AM
  2. Problem with my program...
    By saya_makan36 in forum C Programming
    Replies: 1
    Last Post: 03-09-2010, 06:49 AM
  3. Replies: 4
    Last Post: 10-16-2008, 07:30 PM
  4. Math Equation Program (I can't find the problem with my program!)
    By masked_blueberr in forum C Programming
    Replies: 14
    Last Post: 07-06-2005, 11:53 AM
  5. problem with C++ program
    By bluedemus in forum C++ Programming
    Replies: 2
    Last Post: 01-19-2003, 04:26 PM

Tags for this Thread