Skip to content

Instantly share code, notes, and snippets.

View ranamahmud's full-sized avatar
🎯
Focusing

Md Rana Mahmud ranamahmud

🎯
Focusing
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,y;
x = -5;
printf("Value of x is %d\n",x);
y = abs(x);
printf("Absolute value of x is %d\n",y);
@ranamahmud
ranamahmud / swapwihouttemp
Created June 23, 2015 03:02
তৃতীয় ভেরিয়েবল ব্যবহার না করে দুটি ভেরিয়েবলের মান সোয়াপ করা
#include <stdio.h>
// Author: Md. Rana Mahmud
int main()
{
int num1, num2;
num1 = 80;
num2 = 34;
printf("Before swap num1 = %d and num2 = %d\n",num1,num2);
num2 = num1 + num2;
num1 = num2 - num1;
#include <stdio.h>
int main()
{
int x,n,flag;
printf("input an integer number: \n");
scanf("%d",&x);
flag = 1;
while(x<=1)
{
//Author : Md. Rana Mahmud
#include <stdio.h>
#include <string.h>
int main(){
char str[110];
int k,i,j,stringLength ,G,x;
while(scanf("%d",&G)&&G){
scanf("%s",str);
#include <stdio.h>
#include <math.h>
int main()
{
double x,y;
printf("Enter y: \n");
scanf("%lf",&y);
x = pow(pow(y,5.7)-pow(y,2.3),0.5);
#include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main(){
int n,i=1 ,sum;
@ranamahmud
ranamahmud / spacecount.py
Created January 5, 2016 12:29
Program to count space
sentance = "I am counting number of space."
space_count = sentance.count(' ')
print space_count
sentance = raw_input("Entear your sentance: ")
space_count = sentance.count(' ')
if space_count == 3 or space_count == 4 or space_count== 5:
print "Sentance is good"
@ranamahmud
ranamahmud / sample
Created February 5, 2016 12:34 — forked from anonymous/sample
<Text View
android:text="Hapy Birthday"
android:layout_width="150dp"
android:layout_height="150"
android:background="@android:color/darker_groy"
>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:text="Guest List"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />