Monday 27 February 2017

CARROMS DOUBLES CLASH

            CARROMS DOUBLES CLASH

This blog is regarding a carroms game(doubles) to be conducted in Lotus royale pg for gents ("only for the people residing in Lotus royale PG") on 11th &12th of March 2017.

Registration Fee: 50/- per team
Winning Price: 500/- per team

"Registration starts from 3rd of March till 9th of March"

People who wants to register can call Sanjeev(+91 8500736383) or can even text in whatsapp in the below format.

"Teamname Phonenumber"


Rules:

1. This tournament is only for the people residing in Lotus royale PG.
2. No under hands.
3. No half rings.
4. Its a foul if you pot striker into the hole, the opposite team will have a chance to place an extra coin.
5. If you pot coin and striker together you will have option to keep your extra coin or leave your strike.
6. No foul if you strike your opponents coins directly.


Game Schedule:

1. Qualifier matches will be for 3 boards, the team that wins twice will be qualified to next round.
2. Semi finals match will be for 5 boards, the team that wins thrice will be qualified for finals.
3. Finals match will be for a complete game of 29 points. Team which scores 29 points will be declared as winners team.
  a) In the finals 'Red' will not be counted to score after 23 points(I.e from 24 points).


 "SPEND TIME HAVE FUN AND WIN PRICE"



Wednesday 9 December 2015

C program: swapping of 2 numbers without using 3rd variable


#include<stdio.h>
int main(){
    int a,b,temp;
   
    printf("Enter any two integers: ");
    scanf("%d%d",&a,&b);
    printf("Before swapping: a = %d, b=%d",a,b);

    a=a+b;
    b=a-b;
    a=a-b;
    printf("After swapping: a = %d, b=%d",a,b);

    return 0;
}

C program: subtraction of two numbers without using minus operator

#include<stdio.h>

int main(){
   
    int a,b;
    int sum;

    printf("Enter any two integers: ");
    scanf("%d%d",&a,&b);

    sum = a + ~b + 1;

    printf("Difference of two integers: %d",sum);

    return 0;
}

Sample Output:

Enter any two integers: 7 3
Difference of two integers: 4

C program: addition of two numbers without using plus operator

#include<stdio.h>

int main(){
   
    int a,b;
    int sum;

    printf("Enter any two integers: ");
    scanf("%d%d",&a,&b);

    //sum = a - (-b);
    sum = a - ~b -1;

    printf("Sum of two integers: %d",sum);

    return 0;
}



Sample output:

Enter any two integers: 2 15

Sum of two integers: 17

C program- to reverse a number

#include<stdio.h>
int main(){
    int num,r,reverse=0;

    printf("Enter any number: ");
    scanf("%d",&num);

    while(num){
         r=num%10;
         reverse=reverse*10+r;
         num=num/10;
    }

    printf("Reversed of number: %d",reverse);
    return 0;
}

Sample output:
Enter any number: 56
Reversed of number: 65