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
#import <stdio.h> | |
int main(int argc, char * argv[]){ | |
int areas[]={10,67,7,90,89}; | |
printf("the size of ints id %ld",sizeof(int)); | |
printf("the first character of array is %d",areas[0]); | |
return 0; | |
}; |
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
#read file | |
# calculate trajetory | |
# @author: Mashoko Blessing | |
# @ http://www.facebook.com/blessing.mashcom | |
# @mashcom digimedia http://www.hookd-up.com | |
import os | |
def isFileAvailable(myfile): | |
if(os.path.isfile(myfile)): |
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
# calculate factorial | |
# @author: Mashoko Blessing | |
# @http://www.facebook.com/blessing.mashcom | |
# @mashcom digimedia http://www.hookd-up.com | |
#email: bmashcom@hotmail.com | |
def factorial(x): | |
if(x==0): | |
return 1 | |
else: |
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
# calculate trajetory | |
# @author: Mashoko Blessing | |
# @ http://www.facebook.com/blessing.mashcom | |
# @mashcom digimedia http://www.hookd-up.com | |
from math import sin,cos,pi | |
def calculateTraf(angle, velocity ): | |
#defining gravity |
NewerOlder