Skip to content

Instantly share code, notes, and snippets.

View raydvard's full-sized avatar

Fahim Uddin (Ray D'vard) raydvard

View GitHub Profile
@raydvard
raydvard / pl1prac1
Created September 9, 2014 04:03
C++ Practice kortesi :)
//###################### Prac-1 ########################## //
// Input an integer number and output the last digit of the given number //
// ####################################################### //
#include <stdio.h>
int main()
{
int num, ld;
@raydvard
raydvard / pl1prac2
Created September 9, 2014 04:05
C++
//###################### 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 / pl1prac3
Created September 9, 2014 04:06
C++
//###################### Prac-3 ########################## //
// Input an integer number and output the given number in reverse //
// ####################################################### //
#include <stdio.h>
int main()
{
int num;
int fd, sd, td;
@raydvard
raydvard / pl1prac4
Created September 9, 2014 04:07
C++
//###################### 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;
@raydvard
raydvard / loopprac1
Created September 16, 2014 18:52
Input 3 subjects number for 3 individual students and find out individual average marks by RD
#include<stdio.h>
int main()
{
int a, b, c;
int ns, avg;
ns = 0;
while( ns <= 2 )
{
@raydvard
raydvard / loopprac2
Created September 16, 2014 18:53
Find out even numbers between 0 to 99 :p
#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 / assaignment-2
Created October 5, 2014 16:09
Assignment-2 (Prime,even and odd)
#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 / assignment-2 (PHP)
Created October 5, 2014 16:30
assignment-2 (prime,even and odd) // 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;