Category: C

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() {…

17
May
2017

Register in Storage Class

code: #include<stdio.h> int main() { register int count; for(count=1;count<=1000;count++) { printf(“%d\n”,count); } // int countn; // for(countn=1;countn<=1000;countn++)…