JoBat update

A Virtual World of Infotainment :)




Book My Show will begin the online ticket sales for CSK matches on Monday , April 2,2018 at 9:30 am across their platforms.

For the offline tickets, the details are given below.,
  • The ticket price starts from Rs. 1300/- for stands C,D and E - lower, and the tickets can be bought from Booth number 6, Victoria Hostel road. 
  • The stands C and D - Upper tier costs Rs.2500/-
  • E hospitality box (level 3), H hospitality box (level 2), Anna pavilion and Pavilion terrace tickets cost Rs.5000, Rs.6500, Rs.4500 and Rs.6500 respectively.

Note: Not more than two tickets per head will be sold across the counter. The tickets will be on sale between 9:30 am to 12:30 pm and 2 pm to 6 pm. (Source : Sportstar)

Chennai Super Kings'ku Whistle Podu!!!

 



Here's a small tribute to our legendary Stephen Hawking...
  • Stephen Hawking was born January 8, 1942 on the 300th anniversary of Galileo's death.
  • It's tough to believe but the man who changed our views about black hole and the universe at large, did not get very good marks in school. In fact, he couldn't even properly read until he was 8 years old.
  • Despite his poor grades, Hawking was nicknamed 'Einstein' by his classmates after he built a computer with his friends as a teenager. He also had an almost unbelievable understanding about space and time, which shocked everyone. 
  • He once said, "God may exist, but science can explain the universe without the need for a creator". This is not just a statement of an Atheist, but of an ardent Scientist!
  • After taking his zero gravity flight in Zero Gravity Corp, he told, "I have already completed a zero gravity flight which allowed me to float weightless, but my ultimate ambition is to fly into space."
  • "People who boast about their IQ are losers.", this was his reply to a question if he believed he was the most intelligent person in the world!
  • His book 'A Brief History of Time' was the bestseller of its time.
  • His view on disability, "If you are disabled, it is probably not your fault, but it is no good blaming the world or expecting it to take pity on you. One has to have a positive attitude and must make the best of the situation that one finds oneself in; if one is physically disabled, one cannot afford to be psychologically disabled as well. In my opinion, one should concentrate on activities in which one's physical disability will not present a serious handicap. I am afraid that Olympic Games for the disabled do not appeal to me, but it is easy for me to say that because I never liked athletics anyway."
  • He commented on the Oscar-winning actor Eddie Redmayne,who portrayed him in the movie 'The Theory of Everything', stating that, "Unfortunately, Eddie did not inherit my good looks."
  • "Noble without a Nobel!" Despite his groundbreaking discoveries, he was never nominated for a Nobel Prize.
  • Hawking, diagnosed with motor neurone disease in 1963, lived with it for more than 50 years - a remarkably long time for an ALS sufferer.
  • ALS is short for amyotrophic lateral sclerosis, which is also known as Lou Gehrig's disease. ALS is a progressive neurodegenerative disease that affects nerve cells in the brain and spinal cord, according to the ALS Association. Over time, those with the disease, which affects nerves and muscle use, can lose the ability to move and communicate. ALS is the most common motor neuron disease, according to National Institutes of  Health. Till date, there is no cure for ALS.
  • The Ice Bucket Challenge, sometimes called the ALS Ice Bucket Challenge, is an activity involving the dumping of a bucket of ice and water over a person's head, either by another person or self-administered, to promote awareness of ALS and encourage donations to research.
  • His advice to his children,"One, remember to look up at the stars and not down at your feet. Two, never give up work. Work gives you meaning and purpose and life is empty without it. Three, if you are lucky enough to find love, remember it is there and don't throw it away."
  • From Star Trek to the Big Bang Theory, The Simpsons to Monty Python, Stephen Hawking crops up all over the universe.Professor Hawking, known for being a theoretical physicist, appeared in many works of popular culture.

  • Finally, the star was sucked away from the earth by a deadly black hole on March 14th, 2018. Interestingly, the anniversary of Albert Einstein's birth!
          #RIPhawKING

Thanks to Vint Cerf and Robert E.Kahn for inventing the Internet, which helped me to create this post! XD

Write a C program for the following pattern 

Sample Input    : 5   // no. of rows to print

Sample Output :

E D C B A
E D C B
E D C
E D
E

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include<stdio.h>
int main()
{
    char a='A',c;
    int i,j,n;
    printf("Enter number of rows to print : ");
    scanf("%d",&n);
    for(i=n-1;i>=0;i--)
    {
        c=a+n-1;
        for(j=0;j<i+1;j++)
        {
            printf("%c",c);
            c=c-1;
        }
        printf("\n");
    }
    return 0;
}

OUTPUT :


Write a C program to check Armstrong Number of N digits

Sample input  : 153
Sample output: armstrong number

Sample input   : 1634
Sample output : armstrong number

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <stdio.h>
#include <math.h>
int arm(int a)
{
    int i=0,res=0,dup,rem;
    dup=a;
    while(dup!=0)
    {
       dup= dup/10;
        ++i;  // To find how many digits present
    }
    dup=a;
    while(dup!=0)
    {
        rem=dup%10;
        res+=pow(rem,i);
        dup=dup/10;
    }
    return res;
}
int main()
{
    int n,c;
    scanf("%d",&n);
    c=arm(n);
    if(c==n)
    {
        printf("armstrong number");
    }
    else
    {
        printf("not a armstrong number");
    }
    

    return 0;
}

OUTPUT:














Write a C program for the following pattern

Sample input : 4 //number of rows to print
Sample Output :
1
1    2
3    5    8
13  21  34   55

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include<stdio.h>
int fib(int k)
{
    if(k==0)
    {
        return 0;
    }
    if(k==1)
    {
        return 1;
    }
    else
    {
        return (fib(k-1)+fib(k-2)); //recursion
    }
    
}
int main()
{
    int a=1,i,j,n;
    printf("Enter number of rows to print: ");
    scanf("%d",&n);
    for(i=0;i<n;i++)
    {
        for(j=0;j<i+1;j++)
        {
            printf("%d\t",fib(a));
            a++;
        }
        printf("\n");
    }
    return 0;
}

OUTPUT:


Write a C program to insert a character in a given string

Sample input : jobaupdate //string
                           5 //position to enter the character
                           t //character to insert
Sample output : jobatupdate

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include<stdio.h>
#include<string.h>
int main()
{
    char string[20],c;
    int len,n,k;
    printf("Enter the string : ");
    gets(string);
    printf("\nEnter the position to insert character : ");
    scanf("%d",&n);
    k=n;
    printf("\nEnter the character to insert : ");
    scanf("%s",&c);
    len=strlen(string)+1; //total lenghth of the string + 1
    for(int i=len;i>k;i--)
    {
    string[i-1]=string[i-2];
    }
    string[k-1]=c;
    printf("\nNew String : %s",string);
    return 0;
}

OUTPUT:


Write a C program to convert lower case in to upper case [Don't use built in functions]

Sample input :
jobat update
Sample output :
JOBAT UPDATE


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#include <stdio.h>

int main()
{
    char string[20];
    int i=0;
    gets(string);
    for(i=0;i<strlen(string);i++)
    {
        if(string[i]!='\n')
        {
            if(string[i]>='a'&&string[i]<='z')
            {
                string[i]=string[i]-32;
            }
        }
    }
    printf("%s",string);

    return 0;
}
OUTPUT :


Newer Posts Older Posts Home

SUBSCRIBE & FOLLOW

POPULAR POSTS

  • Compress a string
  • Adam Number
  • Fab Four
  • Vada Chennai Review
  • Middlewares in Express JS

Categories

  • Awards 4
  • Code 23
  • Review 16
  • sport 1
  • Tech 2
  • Update 14

Contact Form

Name

Email *

Message *

  • ►  2020 (1)
    • ►  July (1)
  • ►  2019 (7)
    • ►  October (1)
    • ►  July (1)
    • ►  February (1)
    • ►  January (4)
  • ▼  2018 (33)
    • ►  October (2)
    • ►  September (3)
    • ►  August (1)
    • ►  July (3)
    • ►  June (4)
    • ►  April (8)
    • ▼  March (7)
      • Tickets for CSK matches opens from..?
      • The man who knew everything!
      • Pattern Printing II
      • Check Armstrong Number of N digits
      • Pattern Printing I
      • Insert a character in a given string
      • Lower case to Upper case conversion
    • ►  February (1)
    • ►  January (4)
  • ►  2017 (17)
    • ►  December (3)
    • ►  November (6)
    • ►  October (8)

Search This Blog

Powered by Blogger.

Report Abuse

HOME

  • HOME
  • Code Block
  • Tech World
  • How is it?
  • What's Up?
  • JoBatMovie_Awards
  • Sports Block
  • Privacy Policy

JoBatMovie Awards

  • Home
  • JoBatMovie Awards
  • Home

Featured post

JBM awards 2k18

JoBat Updates

Designed by OddThemes | Distributed by Gooyaabi Templates