HOME

Start

Control Statements

Array

Function

Structure

Pointer

File

Projects

 

 

 

 

 

 

C programing

Ckalari.com is the No.1 website to get the best of C programs, free source codes, projects in c language……  

A C program to find product of two given numbers using function

#include<stdio.h>

#include<conio.h>

int product(int n1,int n2);

void main()

     {

    int n1,n2,p;

    clrscr();

    printf("\n Enter two numbers\n");

    scanf("%d%d",&n1,&n2);

    p=product(n1,n2);

    printf("\nThe product of numbers is::%d",p);

    getch();

     }

int product(int x,int y)

     {

    int pr;

    pr=x*y;

    return(pr);

     }

Copyright © 2007-2008 www.ckalari.com