Skip to content

Instantly share code, notes, and snippets.

View parvezmrobin's full-sized avatar

Parvez M Robin parvezmrobin

View GitHub Profile
#include <stdio.h>
void main()
{
}
#include <stdio.h>
void main()
{
printf("My name is Shakib the programmer. I am a student of siskul. My roll no is 01. I have came here to learn C programming language.");
}
#include <stdio.h>
void main()
{
printf("My name is Shakib the programmer.");
printf("I am a student of siskul.");
printf("My roll no is 01.");
printf("I have came here to learn C programming language.");
}
#include <stdio.h>
void main()
{
printf("My name is Shakib the programmer.\nI am a student of siskul. \nMy roll no is 01.\nI have came here to learn C programming language.");
}
@parvezmrobin
parvezmrobin / if0.c
Last active February 23, 2016 12:22
#include <stdio.h>
int main(){
int sir_present = 1;
if(sir_present == 1){
int a, b, c, d;
scanf("%d %d %d %d", &a, &b, &c, &d);
printf("Summation: %d \n", a+b+c+d);
printf("Multiplication: %d\n", a*b*c*d);
}
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
if(n<0){
printf("%d is negative.", n);
}
else{
printf("%d is positive.", n);
#include <stdio.h>
int main(){
int n;
scanf("%d", &n);
if(n<0){
printf("%d is negative.", n);
}
else if(n>0){
printf("%d is positive.", n);
#include<stdio.h>
int main(){
int n;
scanf("%d", &n);
if(n<0){
n = n * -1;
}
printf("Absolute value is %d", n);
}
@parvezmrobin
parvezmrobin / Expression Evaluation.java
Created April 18, 2017 18:02
A Java class for evaluating the value of an arithmetic expression.
import java.util.ArrayList;
import java.util.EmptyStackException;
import java.util.Stack;
public class ExpressionEvaluator {
public static void main(String[] args) {
System.out.println(new ExpressionEvaluator("5+24/4*(5-3)").EvaluatePostFix());
}
private String expression;
#include <stdio.h>
#include <vector>
#include <queue>
#include <string.h>
#define MAX 200
using namespace std;
typedef long long int lng;
int main()