Skip to content

Instantly share code, notes, and snippets.

Avatar

Fahim Uddin (Ray D'vard) raydvard

View GitHub Profile
@raydvard
raydvard / assignment-2 (PHP)
Created Oct 5, 2014
assignment-2 (prime,even and odd) // PHP
View assignment-2 (PHP)
<?php
if(isset($_POST["submit"]))
{
// if submitted assign variables values
$low = $_POST["lowNum"];
$highLimit = $_POST["highNum"];
$countLines = 0;
$sum_ev = 0;
$sum_od = 0;
$sum_prm = 0;
@raydvard
raydvard / assaignment-2
Created Oct 5, 2014
Assignment-2 (Prime,even and odd)
View assaignment-2
#include<stdio.h>
int main()
{
/*==================Variable Declarations & Assignments========================*/
int lowLimit, highLimit, low, high;
int countLines = 0, sum_ev = 0, sum_od = 0, sum_prm = 0;
int constant_prm;
/*=============================================================================*/
@raydvard
raydvard / loopprac2
Created Sep 16, 2014
Find out even numbers between 0 to 99 :p
View loopprac2
#include<stdio.h>
int main()
{
int i;
printf("Even Numbers Between 0 to 99 are given below :");
for ( i = 0; i <= 98; i = i + 2 )
{
printf("\n%d", i);
@raydvard
raydvard / loopprac1
Created Sep 16, 2014
Input 3 subjects number for 3 individual students and find out individual average marks by RD
View loopprac1
#include<stdio.h>
int main()
{
int a, b, c;
int ns, avg;
ns = 0;
while( ns <= 2 )
{
View pl1prac4
//###################### Prac-4 ########################## //
// Input an integer number and output the given number in reverse between last two digits //
// ####################################################### //
#include <stdio.h>
int main()
{
int num;
int fd, sd, td;
View pl1prac3
//###################### Prac-3 ########################## //
// Input an integer number and output the given number in reverse //
// ####################################################### //
#include <stdio.h>
int main()
{
int num;
int fd, sd, td;
View pl1prac2
//###################### Prac-2 ########################## //
// Input an integer number and output the individual digits of the given number and sum of the individual digits //
// ####################################################### //
#include <stdio.h>
int main()
{
int num;
int fd, sd, td;
@raydvard
raydvard / pl1prac1
Created Sep 9, 2014
C++ Practice kortesi :)
View pl1prac1
//###################### Prac-1 ########################## //
// Input an integer number and output the last digit of the given number //
// ####################################################### //
#include <stdio.h>
int main()
{
int num, ld;