Category: A ll Codes

17
May
2017

Value: Absolute in Function

code: #include<stdio.h> int absolute() { int n; printf(“Enter Value to Get Absolute:”); scanf(“%d”,&n); if(n<0) n=n*(-1); return n;…

17
May
2017

USD to BDT function in C

code: #include<stdio.h> double dollarToBDT(double usd) { usd=usd*78.55; return usd; } int main() { double tk, usdollar; while(printf(“Type…

17
May
2017

Find Max Value From 3 Parameters Using Function

code: #include<stdio.h> int findMax(int a,int b,int c) { int max; if(a>=b && a>=c) return a; else if(b>=a…

17
May
2017

Function Calculator

code: #include<stdio.h> double add(double a,double b) { double sum; sum = a+b; return sum; } double subtract(double…

17
May
2017

Function Divisor

code: #include<stdio.h> void func(); int main() { func(); } void func() { int n,i; scanf(“%d”,&n); printf(“\n”); for(i=1;…

17
May
2017

Function ODD EVEN

Problem From: 101cproblems #include<stdio.h> int func(int a) { if(a%2==0) return 1; return 0; } int main() {…