Category: ACM-ICPC

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

03
Nov
2015

Reverse Array/Array Copy

code: #include<stdio.h> int main() { int ara[]={10,20,30,40,50,60,70,80,90,100}; //took this array for various limit int ara2[10]; //max value…