Sunday, March 26, 2017

Add sub and multiplication in c with function 1

#include<stdio.h>

void add()
{
    int a=6,b=3;
    printf("summation=%d \n",a+b);

}

void sub()
{
    int a=10,b=3;
    printf("subtraction=%d \n",a-b);

}

void multi()
{
    int a=10,b=3;
    printf("multiplication=%d \n",a*b);

}

main()
{


    printf("We R in main function \n");
    add();
    sub();
    multi();





}

No comments:

Post a Comment