#include using namespace std; void gcm_lcm() { int a, b, gcd, lcm, mul; cin >> a >> b; // 15 6 mul = a*b; while (b%a != 0) { int tmp = b; // 6 b = a; // 15 a = tmp%a; // 6 % 15 = 6 } gcd = a; printf("GCD: %d\n", gcd); lcm = mul / gcd; printf("LCM: %d\n", lcm); /** vag shess 0 hole vajok gcd jodi 0 na hoy tahole vag shess vajok and vajok hbe vajjo */ /** lcm: emon ekta songka jeti ek e sathe a diye o nisshes e vibajjo and b diye o nisshes e vibajj and songkati sorbo nimnno songka ortat er cheye chuto r kunu songka nei jeti ek sathe a and b uboy diyei nisshese bivajjo 6 15 GCD: 3 LCM: 30 */ } void greatest_of_four() { int a,b,c,d; printf("Enter the Four Numbers :"); scanf("%d %d %d %d",&a,&b,&c,&d); if(a>b) { if(a>c) { if(a>d) { printf("%d is big",a); } else { printf("%d is big",d); } } } else if(b>c) { if(b>d) { printf("%d is big",b); } else { printf("%d is big",d); } } else if(c>d) { printf("%d is big",c); } else { printf("%d is big",d); } } void goto_statement() { int i=10; A: if(i<=100) { printf("%d ", i); i+=10; goto A; } } int main() { /**int sum = 0; for(int i=1; i<=5; i++) { sum = sum+i*i; /// 0 1 2 3 4 } printf("%d\n", sum); */ int i=2; do { printf("Hello\n"); i++; } while(i<=5); return 0; }