function program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paqueress
    New Member
    • Dec 2006
    • 5

    #1

    function program

    I want to know how I can write a function called print() which prints the following statement when called "Try try try again"


    Pliz help....!!!!!!!


    Thanx
  • DeMan
    Top Contributor
    • Nov 2006
    • 1799

    #2
    Odd request but make sure you #include <stdio.h>....

    Code:
    void print()
    {
      printf("Try try try again");
    }
    and in your main function you can call "print();"

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by paqueress
      I want to know how I can write a function called print() which prints the following statement when called "Try try try again"


      Pliz help....!!!!!!!


      Thanx
      You should also make sure to read a tutorial on functions after this.

      Comment

      Working...