Pages

Largest Collection of Code

C Progam to add two Numbers using Functions


This  is a simple program to add two Numbers 
#include<stdio.h>
#include<stdio.h>
#include<conio.h>
 void main()
 {
 int a,b,c;
 printf("\nEnter the two numbers : ");
 scanf("%d %d",&a,&b);

 /* Call Function Sum With Two Parameters */
 c = sum(a,b);

 printf("\nAddition of two number is : ");
 getch();
 }

 int sum ( int num1,int num2)
 {
 int num3;
 num3 = num1 + num2 ;
 return(num3);
 }
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...

0 comments

:) :-) :)) =)) :( :-( :(( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ :-$ (b) (f) x-) (k) (h) (c) cheer

 
Posts RSSComments RSSBack to top
© 2011 99Coding ∙ Designed by BlogThietKe
Released under Creative Commons 3.0 CC BY-NC 3.0