This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() | |
{ | |
int x,n,flag; | |
printf("input an integer number: \n"); | |
scanf("%d",&x); | |
flag = 1; | |
while(x<=1) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdio> | |
#include <cmath> | |
using namespace std; | |
int main(){ | |
int n,i=1 ,sum; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sentance = "I am counting number of space." | |
space_count = sentance.count(' ') | |
print space_count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Text View | |
android:text="Hapy Birthday" | |
android:layout_width="150dp" | |
android:layout_height="150" | |
android:background="@android:color/darker_groy" | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> | |
OlderNewer