Category: 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;…
code: #include<stdio.h> double dollarToBDT(double usd) { usd=usd*78.55; return usd; } int main() { double tk, usdollar; while(printf(“Type…
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…
code: #include<stdio.h> double add(double a,double b) { double sum; sum = a+b; return sum; } double subtract(double…
code: #include<stdio.h> void func(); int main() { func(); } void func() { int n,i; scanf(“%d”,&n); printf(“\n”); for(i=1;…
code: #include<stdio.h> void printMsg(unsigned int n) { if(n==0) return; //when we are using return in void function…
Recent Comments