Skip to content

Instantly share code, notes, and snippets.

View Zoha131's full-sized avatar
🎯
Hunting a Job

Md Abir Hasan Zoha Zoha131

🎯
Hunting a Job
View GitHub Profile
@Zoha131
Zoha131 / r_pyramid.c
Last active February 26, 2017 18:35
My code works fine with the sample inputs. But whenever I submit the code to code marshal, it gets unaccepted.
#include <stdlib.h>
#include <stdio.h>
int main()
{
int i, j, t, k,m,n;
scanf("%d", &t);
for(i=1; i<=t; i++)
@Zoha131
Zoha131 / r_pyramid.c
Created February 26, 2017 18:27
Problems in code_marshal solutions.
/*
* =====================================================================================
*
* Filename: pyramid.c
*
* Description: code_marshal
*
* Version: 1.0
* Created: 02/13/2017 04:00:10 AM
* Revision: none
@Zoha131
Zoha131 / problem- 3
Last active September 22, 2016 13:08
MIT- 6.00.1x || week 2 || pset-2 || problem-3
annualInterestRate = 0.2
balance = 320000
# variable for Monthly Interest rate
mir = annualInterestRate / 12.0
pb = balance
#lower bound
lwb = balance /12
@Zoha131
Zoha131 / getMethod.c
Created September 7, 2016 07:09
From the lecture video and reference.cs50.net I have learnt to use get_string(void) this method but It don't work in cs50 IDE. Instead of get_string(void), GetString() method is working in my IDE.
#include <cs50.h>
#include <stdio.h>
int main(void){
printf("type char:");
printf("This is char %c\n\n", GetChar());
printf("type double:");
printf("This is double %f\n\n", GetDouble());