Posts

Showing posts from July, 2018

Uva 12250 solution in c-Language-Detection

uva problem 100 solution in c

seeing this source code of uva 100 after trying hard.if you cannot solve the problem ,then you can see  this source code. // uva 100.cpp : Defines the entry point for the console application. // //md.anis molla //university of barisal 5th batch #include "stdafx.h" # include<iostream> using namespace std; int main() { int i, j, m, n, t, c = 1, d; int sum=0; //cin >> n; //cin >> m; scanf("%d%d", & n, &m); printf("%d %d ", n, m); if (n > m) { t = m; m = n; n = t; } for (i = n;i <= m;i++) {         c = 1; for(j=i;j!=1;j=j){ if (j % 2 == 0) { j = j / 2; } else { j = 3 * j + 1; } c = c + 1; } if (c >= sum)sum=c; } printf("%d\n", sum);     return 0; }

Zeroth law of thermodynamic

1|Thermodynamics :which section of physics  dicuss the mutual conversion and relation of heat and mecanical power is called thermodynamics. 2|Heat :everything of the universe consist of two element .one is substance and another is power\energy.heat is a kind of power\energy. 3| tempreature :tempreature is a thermal condition of any substance.if it is amalgamate with another substance ,they will be thermal equilibration.this properties is tempreature. 4| zeroth law of thermodynamic:if the two substance is in thermal equilibrium with third substance then the first two substance will be in the thermal equilibrium with another.this is called zeroth law of thermodynamics. 5| the first law of thermodynamics : when the heat is taken by any system then some parts of heat spent to increase the internal energy or tempreature and remaining parts of heat are spent to complete the work. 6|internal energy:which energy stays   dormant condition in an...

MD.Anis Molla pic

Image