Category: ACM

01
Dec
2015

HackerRank – Simple Array Sum

#include<stdio.h> int main() { int a[1000],n,i,sum=0; scanf(“%d”,&n); for(i=0;i<n;i++) { scanf(“%d”,&a[i]); sum=sum+a[i]; } printf(“%d”,sum); return 0; }  

14
Nov
2015

Programming Motivation!

https://www.youtube.com/watch?v=OWsyrnOBsJs     http://www.techtunes.com.bd/programming/tune-id/125550 https://progkriya.wordpress.com/page/2/http://ask.fm/shanto86 Programmer of the Month for April 2011: Md. Mahbubul Hasan  

13
Nov
2015

Length of a input string

#include<stdio.h> int main() { char country[200]; int length; while(1==scanf(“%s”,country)) { length=string_length(country); printf(“length:%d\n”,length); } return 0; } int…

12
Nov
2015

Uppercase to Lowercase

Lowercase to Uppercase #include<stdio.h> int main() { char country[]={‘b’,’a’,’n’,’g’,’l’,’a’,’d’,’e’,’s’,’h’}; int i,length; printf(“%s\n”,country); length=10; for(i=0;i<length;i++){ if(country[i]>=97 && country[i]<=122)…

05
Nov
2015

Area of Circle using function

for formula: http://www.mathsisfun.com/area.htm code: #include<stdio.h> double pi=3.1416; double britto(double r) { double area=pi*r*r; return area; } int…

05
Nov
2015

Find Maximum and Minimum and Summation value from array

Did this problem from subeen vai’s book. For maximum value: #include<stdio.h> int find_max(int ara[],int n); int main()…