Author: Saravana Kumar

  • C Programming Basic Simple Programs

    C Language – Basic Programs

    • Ex 1 : My First Basic Program -I
    • Ex 2 : My First Basic Program -II
    • Ex 3 : My First Basic Program -III
    • Ex 4 : Integer & Float Converstion
    • Ex 5 : Floating Point Error..
    • Ex 6 : Variable Declaration
    • Ex 7 : Working With Variable
    • Ex 8 : Integer Variable With Scanf-I
    • Ex 9 : Integer Variable With Scanf-II
    • Ex 10 :Integer Variable With Scanf-III
    • Ex 11 :Integer Variable With Scanf-IV
    • Ex 12 :Character Variable Declaration
    • Ex 13 :String Variable With Scanf Function
    • Ex 14 :String Variable With gets Function
    • Ex 15 :Combine all Variables
    • Ex 16 :Print Employee Information with gotoxy function

    Example : 1 Write a Program to print “Hello”

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    /*My First Program – Comment Line */
    clrscr();
    printf(“Hello”);   
    getch();
    }

    Output :

    Hello


    Go Top

    Example : 2

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    clrscr();
    printf(“Hello\nWelcome”);
    printf(“\nGoldenjrsinfo”);
    printf(“-My Web”);
    getch();
    }

    Output :

    Hello
    Welcome
    Goldenjrsinfo-MyWeb


    Go Top

    Example : 3

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    clrscr();
    printf(“\nHello 12”);    
    printf(“\n%d”);       
    printf(“\n%d”,100);
    printf(“\nA=%d”,100);
    printf(“\nA=%d+10”,100);
    printf(“\nA=%d”,100+10);
    getch();
    }

    Output :

    Hello 12
    0
    100
    A=100
    A=100+10
    A=110


    Go Top

    Example : 4 Integer & Float Conversions (5/2)

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    clrscr();
    printf(“\n1-> %d”,5/2);
    printf(“\n2-> 5/2 = %d”,5/2);           

    /* printf(“\n5/2 = %f”,5/2); This Line is Error */

    printf(“\n3-> 5.0/2 = %d”,5.0/2);   
    printf(“\n4-> 5/0/2 = %f”,5.0/2);     
    printf(“\n5-> 5.0/2 = %.2f”,5.0/2);   
    printf(“\n6-> 5/2.0 = %.2f”,5/2.0);    
    printf(“\n7-> 5.0/2.0=%.2f”,5.0/2.0);
    getch();
    }

    Output :

    1-> 2
    2-> 5/2 = 2
    3-> 5.0/2 = 0
    4-> 5/0/2 = 2.500000
    5-> 5.0/2 = 2.50
    6-> 5/2.0 = 2.50
    7-> 5.0/2.0=2.50


    Go Top

    Example : 5 Floating Point Error….

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    clrscr();
    printf(“\n5/2 = %f”,5/2);
    /*if Error found this program replace %f into %d”*/
    getch();
    }

    Output :(Press ALT+F9 to compile In Turboc & Press ALT+F5 to see below Message)

    printf : floating point formats not linked
    Abnormal program termination


    Go Top

    Example : 6 Variables…..

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a;
    clrscr();
    printf(“\n%d”,10);
    printf(“\n%d (Garbage Value)”,a);
    getch();
    }

    Output :

    10
    -28711  (Garbage Value)


    Go Top

    Example : 7 Variables…..

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a;
    clrscr();
    a=10;
    printf(“\n%d “,a);
    printf(“\nValue = %d”,a);
    printf(“\nGiven Value = %d”,a);
    getch();
    }

    Output :

    10
    Value = 10
    Given Value=10

    Go Top

    Example : 8 Integer Variable with scanf

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a;
    clrscr();
    /* a=10;*/
    scanf(“%d”,a);
    printf(“\n%d “,a);
    printf(“\nValue = %d”,a);
    getch();
    }

    Output :if You Type 20 from Keyboard

    20

    Press Enter…

    20
    Value = 20

    Finally…You can see Output window..

    20
    20
    Value = 20


    Go Top

    Example : 9 Integer Variable with scanf

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a;
    clrscr();
    printf(“\nEnter Any Value = “);
    scanf(“%d”,a);
    printf(“\nEntered Value = %d”,a);
    getch();
    }

    Output :

    Enter Any Value =

    if You Type 20 from Keyboard

    Enter Any Value = 20

    Press Enter…

    Entered Value = 20

    Finally…You can see Output window..

    Enter Any Value =20
    Entered Value = 20


    Go Top

    Example : 10 Working With scanf Function

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a,b;
    clrscr();
    scanf(“%d %d”,&a,&b);
    printf(“\n%d”,a);
    printf(“\n%d”,b);
    getch();
    }

     Output : 1

    if You type 10 from Keyboard

    10

    Press Enter > again please type 20 from Keyboard

    10

    20

    Finally…You can see Output window..

    10
    20
    10
    20

    Output : 2

    press 10 from Keyboard > press spacebar (Don’t Press Enter) > Press 20 from Spacebar

    10 20

    Press Enter >

    10 20

    Finally…You can see Output window..

    10 20
    10
    20


    Go Top

    Example : 11 Working With Scanf ..

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a,b;
    clrscr();
    printf(“\nEnter  a Value = “);
    scanf(“%d”,&a);
    printf(“\nEnter  b Value = “);
    scanf(“%d”,&b);
    printf(“\nA Value = %d”,a);
    printf(“\nB Value = %d”,b);
    printf(“\nA+B Value = %d”,a+b);
    printf(“\nA+10 Value = %d”,a+10);
    getch();
    }

    Output :

    Enter a Value =

    if You Type 20 from Keyboard

    Enter a Value = 10

    Press Enter…

    Enter a Value = 10

    Enter b Value = 10

    Press Enter…

    Finally…You can see Output window..

    Enter a Value = 10
    Enter b Value = 20
    A Value =10
    B Value= 20
    A+B Value = 30
    A+10 Value = 20


    Go Top

    Example : 12 Character Variable Declaration

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    char ans;
    clrscr();
    printf(“\n ans = %c”,ans);
    ans=’ ‘;
    printf(“\n ans= %c”,ans);
    printf(“\n ans= %d”,ans); /*Returns ascii value of Space */
    ans=’Y’;
    printf(“\n ans = %c”,ans);
    getch();
    }

    Output :

    ans = Å
    ans=
    ans= 32
    ans = Y


    Go Top

    Example : 13 String Variable With Scanf Function

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    char ans;
    char myname[15];
    clrscr();
    printf(“\nEnter Any Character => “);
    scanf(“%c”,&ans);
    printf(“\nEnter Any Name(String) => “);
    scanf(“%s”,&myname);
    printf(“\nGiven Character => %c”,ans);
    printf(“\nGiven Name => %s”,myname);
    getch();
    }

    Output :

    Enter Any Character => M

    Enter Any Name(String) => Manoj Kumar

    Given Character => M
    Given Name => Manoj


    Go Top

    Example : 14 String Variable With gets Function

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    char ans;
    char myname[15];
    clrscr();

    printf(“\nEnter Any Name => “);
    scanf(“%s”,&myname);
    printf(“\nGiven Name Using Scanf => %s”,myname);

    /*
    Please add fflush(stdin) before gets function
    If Omitted this line,You will get wrong output
    If any doubt,remove the fflush(stdid); and run again
    */

    printf(“\nEnter Any Name => “);
    fflush(stdin);
    gets(myname);

    printf(“\nGiven Name Using gets => %s”,myname);
    getch();
    }

    Output :

    Enter Any Name => Vijay Antony

    Given Name Using Scanf => Vijay
    Enter Any Name => Vijaya Raj

    Given Name Using gets => Vijaya Raj


    Go Top

    Example : 15 Combine all variables (Emp Info)

    #include<stdio.h>
    #include<conio.h>
    void main()
    {

    int empno;
    char empname[20];
    float salary;
    clrscr();
    printf(“\nGive the Employee Details”);

    printf(“\nEmployee ID = “);
    scanf(“%d”,&empno);

    printf(“\nEmployee Name =”);
    fflush(stdin);
    gets(empname);

    printf(“\nSalary = “);
    scanf(“%f”,&salary);

    printf(“\nGiven Emp Details “);
    printf(“\nEmp ID=%d , Empname= %s,Salary = %.2f”,empno,empname,salary);

    getch();
    }

    Output :

    Give the Employee Details
    Employee ID = 101

    Employee Name =Rakesh Sharma

    Salary = 24000

    Given Emp Details
    Emp ID=101 , Empname= Rakesh Sharma,Salary = 24000.00


    Go Top

    Example : 16 print employee information with gotoxy function (Read Carefully)

    /*Author : C.Saravana Kumar */
    #include<stdio.h>
    #include<conio.h>
    void main()
    {

    int empno;
    char empname[20];
    float salary;
    clrscr();

    /*Syntax of gotoxy function is > gotoxy(Xposition,Yposition) */
    /*
    ————————————– (x) |
    |            .(10,1)
    |
    |
    |             .(10,40)          .(60,40)
    (y)

    (10,1) Means > gotoxy(10,1);
    */
    gotoxy(2,2);printf(“Employee ID “);
    gotoxy(25,2);scanf(“%d”,&empno);

    gotoxy(2,4);printf(“Employee Name “);
    gotoxy(25,4);fflush(stdin);gets(empname);

    gotoxy(2,6);printf(“Salary “);
    gotoxy(25,6);scanf(“%f”,&salary);

    gotoxy(2,8);printf(“\nGiven Emp Details “);
    gotoxy(2,11);printf(“Emp No”);
    gotoxy(9,11);printf(“Emp Name”);
    gotoxy(32,11);printf(“Salary”);

    gotoxy(2,13);printf(“%d”,empno);
    gotoxy(9,13);printf(“%s”,empname);
    gotoxy(32,13);printf(“%.2f”,salary);

    getch();
    }

    Output :

    Employee ID                101

    Employee Name           Tamil Selvan

    Salary                         45000

    Given Emp Details

    Emp No   Emp Name                             Salary

    101        Tamil Selvan                           45000.00

  • C Programming – If Statements – Examples

    Examples of IF Statements

    Click the following Links to go Solutions of Programs :

    • 1.1 To Check Eligible to Vote – I
    • 1.2 To Check Eligible to Vote – II
    • 1.3 To Check Eligible to Vote – III
    • 2.1 Biggest of Two numbers – I
    • 2.2 Biggest of Two numbers – II
    • 2.3 Biggest of Two numbers – III
    • 3.1 Biggest of Three numbers – I
    • 3.2 Biggest of Three numbers – II
    • 3.3 Biggest of Three numbers – II
    • 4.1 To check given value is positive,negative or zero value.
    • 5.1 To check given number is Even or Odd number
    • 6.1 To Calculate the absolute value of an integer
    • 7.1 Leap Year or Not
    • 8.1 To categorizes a single character that is entered at the keyboard.
    • 9.1 To Evaluate simple expression of the following form – I : Number operator Number For Ex : See Following Output
    • Type in your expression : 10+20
    • 30.00
    • Ex:9.2 To Evaluate simple expression of the following form -II : Number operator Number

    Example : 1.1 To Check Eligible to Vote

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int age;
    clrscr();
    printf("\nEnter Your Age : ");
    scanf("%d",&age);
    
    if(age>=18)
       printf("\nAge is greater than or equal to 18");
    
    getch();
    }

    Output : 1

    Enter Your Age : 30
    Age is greater than or equal to 18

    Output : 2 (No Result)

    Enter Your Age : 10


    Example : 1.2 To Check Eligible to Vote

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int age;
    clrscr();
    printf("\nEnter Your Age : ");
    scanf("%d",&age);
    
    if(age>=18)
    {
       printf("\nAge is greater than or equal to 18");
       printf("\nThis Age Eligible to Vote");
    }
    
    getch();
    }

    Output : 1

    Enter Your Age : 30
    Age is greater than or equal to 18
    This Age Eligible to Vote

    Output : 2 (No Result)

    Enter Your Age : 10


    Example : 1.3 To Check Eligible to Vote

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int age;
    clrscr();
    printf("\nEnter Your Age : ");
    scanf("%d",&age);
    
    if(age>=18)
       printf("\nEligible to Vote");
    else
       printf("\nNot Eligible to Vote");
    
    getch();
    }

    Output : 1

    Enter Your Age : 30
    Age is greater than or equal to 18
    Eligible to Vote

    Output : 2 (No Result)

    Enter Your Age : 10
    Not Eligible to vote


    Example : 2.1 Biggest of Two Numbers

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a,b;
    clrscr();
    printf("\nEnter Value of A ");
    scanf("%d",&a);
    
    printf("\nEnter Value of B ");
    scanf("%d",&b);
    
    if(a>b)
       printf("\n A is Big");
    else
       printf("\n B is Big");
    
    getch();
    }

    Output : 1

    Enter value of A 10
    Enter value of B 20
    A is big

    Output : 2 (Result is Wrong – To Fix This Problem – See Next Example 2.2)

    Enter value of A 10
    Enter value of B 10
    B is big


    Go Top

    Example : 2.2 Biggest of Two Numbers (Change below Code in Previous Code ( Ex 2.1 )

    if(a>b)
       printf("\nA is Big");
    if(b>a)
       printf("\nB is Big");

    (Or)

    if(a>b)
       printf("\nA is Big");
    else if(b>a)
       printf("\nB is Big");

    Output : 1

    Enter value of A 10
    Enter value of b 20
    B is big

    Output : 2 (To print message A & B are equal – See the below Example 2.3

    Enter value of A 10
    Enter value of B 10


    Example : 2.3 Biggest of Two Numbers (Change below Code in Previous Code (Ex 2.1 )

    if(a>b)
       printf("\nA is Big");
    if(b>a)
       printf("\nB is Big");
    else if(a==b)
       printf("\nA & B are Equal");

    Output : 1

    Enter value of A 10
    Enter value of b 20
    B is big

    Output : 2

    Enter value of A 10
    Enter value of B 10
    A & B are Equal


    Example : 3.1 Biggest of Three Numbers

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a,b,c;
    clrscr();
    printf("\nEnter Value of A ");
    scanf("%d",&a);
    printf("\nEnter Value of B ");
    scanf("%d",&b);
    printf("\nEnter Value of C ");
    scanf("%d",&c);
    
    if(a>b && a>c)
       printf("\n%d is Big",a);
    else if (b>a && b>c)
       printf("\n%d is Big",b);
    else if (c>a && c>b)
       printf("\n%d is Big",c);
    
    getch();
    }

    Output : 1

    Enter Value of A 2
    Enter Value of B 3
    Enter Value of C 4
    4 is Big

    Output : 2 (A & C Values are less than B.See the Next Output )

    Enter Value of A 3
    Enter Value of B 4
    Enter Value of C 3
    4 is Big

    Output : 3 (A & C Values are greater than B. To print message A & C is big – See [Ex 3.2])

    Enter Value of A 3
    Enter Value of B 2
    Enter Value of C 3

    Output : 4 (To print message 3 values are Equal – See [Ex 3.2])

    Enter Value of A 3
    Enter Value of B 3
    Enter Value of C 3


    Example : 3.2 Biggest of Three Numbers (Change below code in Previous Code[(Ex 3.1 ] )

    if(a>b && a>c)
       printf("\n%d is Big",a);
    else if (b>a && b>c)
       printf("\n%d is Big",b);
    else if (c>a && c>b)
       printf("\n%d is Big",c);
    else
       printf("\n3 Values are Equal");

    [or]

    if(a>b && a>c)
       printf("\n%d is Big",a);
    else if (b>a && b>c)
       printf("\n%d is Big",b);
    else if (c>a && c>b)
       printf("\n%d is Big",c);
    else if(a==b && b==c)
       printf("\n3 Values are Equal");

    Output : 1

    Enter Value of A 3
    Enter Value of B 3
    Enter Value of C 3
    3 Values are Equal

    Output : 2 (A & C Values are greater than B. To print message A & C is big – See [Ex 3.3])

    Enter Value of A 3
    Enter Value of B 2
    Enter Value of C 3


    Example : 3.3 Biggest of Three Numbers (Finally)

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a,b,c;
    clrscr();
    printf(“\nEnter Value of A “);
    scanf(“%d”,&a);
    printf(“\nEnter Value of B “);
    scanf(“%d”,&b);
    printf(“\nEnter Value of C “);
    scanf(“%d”,&c);

    if(a==c && b<a)
        printf(“\nA & C Values are Big “);
    else if(a==b && c<a)
       printf(“\nA & B Values are Big”);
    else if(b==c && a<b)
       printf(“\nB & C Values are Big”);
    else if(a==b && b==c)
       printf(“\n3 Values are Equal.”);
    else if(a>b && a>c)
       printf(“\nA (%d) is Big”,a);
    else if (b>a && b>c)
       printf(“\nB (%d) is Big”,b);
    else if (c>a && c>b)
       printf(“\nC (%d) is Big”,c);

    getch();
    }

    Output : 1

    Enter Value of A 2
    Enter Value of B 3
    Enter Value of C 2
    B (3) is Big

    Output : 2

    Enter Value of A 3
    Enter Value of B 2
    Enter Value of C 3
    A & C values are Big


    Example : 3.1 Biggest of Three Numbers

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int a,b,c;
    clrscr();
    printf(“\nEnter Value of A “);
    scanf(“%d”,&a);
    printf(“\nEnter Value of B “);
    scanf(“%d”,&b);
    printf(“\nEnter Value of C “);
    scanf(“%d”,&c);

    if(a>b && a>c)
       printf(“\n%d is Big”,a);
    else if (b>a && b>c)
       printf(“\n%d is Big”,b);
    else if (c>a && c>b)
       printf(“\n%d is Big”,c);

    getch();
    }

    Output : 1

    Enter Value of A 2
    Enter Value of B 3
    Enter Value of C 4
    4 is Big

    Output : 2 (A & C Values are less than B.See the Next Output )

    Enter Value of A 3
    Enter Value of B 4
    Enter Value of C 3
    4 is Big

    Output : 3 (A & C Values are greater than B. To print message A & C is big – See [Ex 3.2])

    Enter Value of A 3
    Enter Value of B 2
    Enter Value of C 3

    Output : 4 (To print message 3 values are Equal – See [Ex 3.2])

    Enter Value of A 3
    Enter Value of B 3
    Enter Value of C 3


    Example : 3.2 Biggest of Three Numbers (Change below code in Previous Code[(Ex 3.1 ] )

    if(a>b && a>c)
       printf(“\n%d is Big”,a);
    else if (b>a && b>c)
       printf(“\n%d is Big”,b);
    else if (c>a && c>b)
       printf(“\n%d is Big”,c);
    else
       printf(“\n3 Values are Equal”);

    [or]

    if(a>b && a>c)
       printf(“\n%d is Big”,a);
    else if (b>a && b>c)
       printf(“\n%d is Big”,b);
    else if (c>a && c>b)
       printf(“\n%d is Big”,c);
    else if(a==b && b==c)
       printf(“\n3 Values are Equal”);

    Output : 1

    Enter Value of A 3
    Enter Value of B 3
    Enter Value of C 3
    3 Values are Equal

    Output : 2 (A & C Values are greater than B. To print message A & C is big – See [Ex 3.3])

    Enter Value of A 3
    Enter Value of B 2
    Enter Value of C 3


    5.1 To check given number is Even or Odd number

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int n;
    clrscr();
    printf(“\nEnter any Value “);
    scanf(“%d”,&n);

    if(n%2==0)
       printf(“\n%d is Even Number “,n);
    else if (n%2==1)
       printf(“\n%d is Odd Number”,n);

    getch();
    }

    Output : 1

    Enter any Value 3
    3 is Odd Number


    6.1 To Calculate the absolute value of an integer

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int number;
    clrscr();
    printf (“Enter any Number “);
    scanf (“%d”, &number);

    if ( number < 0 )    number= – number;

    printf (“\n The absolute value is %d”,number);
    getch();
    }

    Output : 1

    Enter any Number 2
    The absolute value is 2

    Output : 2

    Enter any Number -4
    The absolute value is 4


    Ex:7.1 Leap Year or Not

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    int year,reminder;
    clrscr();
    printf (“Enter the Year “);
    scanf (“%d”,&year);

    //if(year%4==0 && year%4!=0 || year % 400==0)
    //if((year%4==0 && year%4!=0) || year % 400==0)
    if(reminder==0)
       printf(“\nIt’s a Leap Year”);
    else
       printf(“\nIt’s not a Leap Year”);

    getch();
    }

    Output : 1

    Enter The year 2010
    It’s a Leap Year.


    Ex:8.1 to Categorizes a Single Character that is entered at the keyboard.

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    char c;
    clrscr()
    printf(“\nEnter a Single Character > “);
    scanf(“%c”,&c);

    if ( (c >= ‘a’ && c <= ‘z’) || (c >= ‘A’ && c <=’Z’) )    printf (“It’s an alphabetic character.\n”); else if (c >= ‘0’ && c <= ‘9’ )    printf (“It’s a digit.\n”); else    printf (“It’s a special character.\n”);

    getch();
    }

    Output : 1

    Enter a Single Character > a
    It’s an alphabetic character.

    Output : 2

    Enter a Single Character > 2
    It’s a digit.

    Output : 3

    Enter a Single Character > &
    It’s a special character.


    Ex:9.1 To Evaluate simple expression of the following form – I : Number operator Number

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    float number1,number2;
    char operator;
    printf (“\nType in your expression : “);
    scanf(“%f %c %f”,&number1,operator,&number2);

    if ( operator == ‘+’ )
       printf (“\n%.2f “, number1+number2);
    else if ( operator == ‘-‘ )
       printf (“\n%.2f “, number1-number2);
    else if ( operator == ‘*’ )
       printf (“\n%.2f “, number1*number2);
    else if ( operator == ‘/’ )
       printf (“\n%.2f “, number1/number2);

    getch();
    }

    Output : 1

    Type in your expression : 10+20
    30.00

    Output : 2

    Type in your expression : 123.45*121
    14937.45

    Output : 3 (To Fix following Output See Next Example )

    Type in your expression : 5/0
    (Program terminated.Because Division by Zero Error)


    Ex:9.2 To Evaluate simple expression of the following form -II : Number operator Number

    #include<stdio.h>
    #include<conio.h>
    void main()
    {
    float number1,number2;
    char operator;
    printf (“\nType in your expression : “);
    scanf(“%f %c %f”,&number1,operator,&number2);

    if ( operator == ‘+’ )
       printf (“\n%.2f “, number1+number2);
    else if ( operator == ‘-‘ )
       printf (“\n%.2f “, number1-number2);
    else if ( operator == ‘*’ )
       printf (“\n%.2f “, number1*number2);
    else if ( operator == ‘/’ )
    else if ( operator == ‘/’ )
    {
      if(number2==0)
         printf(“\nCannot divided by zero “);
      else
         printf (“\n%.2f “, number1/number2);
    }
    else
       printf(“\nUnknown Operator.);

    getch();
    }

    Output : 1

    Type in your expression : 5/0
    Cannot divided by zero

    Output : 2

    Type in your expression : 5$0
    Unknown Operator


  • Fake News Alerts – Aug 2024

    Fake News Alerts – Aug 2024

    தற்போது Social Mediaவின் பயன்பாடு அதிகரித்து வரும் நிலையில் பல்வேறு போலியான செய்திகள் , மின்னஞ்சல்கள், Whatsapp Messages பரவி வருகிறது. இதனால் பல நபர்கள் தங்கள் தகவல்களை இணையதளத்தில் அல்லது பதிவிறக்கம் செய்யப்படும் செயலிகள் (Fake Android Applications) மூலம் பதிவு செய்வதால் பல்வேறு தகவல்கள் திருடப்படுகின்றன.

    இதனை தடுக்கும் வகையில் தற்போது பரவி வரும் போலியான தகவல்கள் என்ன என்பதை கண்டறியும் வகையில் உருவாக்கப்பட்ட Twitter பக்கங்களின் விவரங்கள் கீழே கொடுக்கப்பட்டுள்ளது.

    1. Cyber Crime Wing – Tamil Nadu – https://x.com/tncybercrimeoff
    2. PIB Fact Check – https://x.com/PIBFactCheck
    3. Cyber-safety and Cybersecurity awareness handle maintained by Ministry of Home Affairs, Government of India – https://x.com/Cyberdost
    4. Tamilnadu Fact Check – https://x.com/tn_factcheck

    மேலும மேற்படி Twitter பக்கங்களில் பகிரப்பட்ட சில தகவல்களை இங்கே காணலாம்.

    1. ) Research the company before making any investment!! To Report Cyber Crimes-Dial 1930 or register at https://cybercrime.gov.in

    2) Beware of IRCTC ticket refund scam!! To Report Cyber Crimes-Dial 1930 or register at https://cybercrime.gov.in

    3) Beware of this New SCAM : This is the new way of bank fraud, don’t click on the link in the message.

    Source : https://x.com/tnpoliceoffl/status/1819231033658618009

    Beware of this New SCAM : This is the new way of bank fraud, don’t click on the link in the message.

    4) Beware ‼️ Did you also receive a message asking you to download & install an APK file to redeem SBI rewards❓


    TheOfficialSBI NEVER sends links or APK files over SMS/WhatsApp

    ✔️Never download unknown files or click on such links

  • Step-by-Step JavaScript Learning Schedule: 30 Days to Proficiency

    Step-by-Step JavaScript Learning Schedule: 30 Days to Proficiency

    This plan is going to help you learn JavaScript within four weeks, systematically. Each day represents a schedule of some learning that is followed by exercises and then building small projects. Feel free to adjust the pace according to your satisfaction.

    Week 1: Getting Started with JavaScript
    Day 1: Introduction to JavaScript
    Learn: What is JavaScript, Setting up the environment, Using the console
    Practice: Writing and running the basic JavaScript code in the console.
    Project: Create a basic HTML page and embed a JavaScript script in it.

    Day 2: Basic Syntax and Data Types

    Learn: Variables, data types: numbers, strings, booleans, and operators.
    Practice: Variable declaration, basic arithmetic, string concatenation.
    Project: Development of a basic greeting message generator.

    Day 3: Control Structures

    Learn: If-else statements, comparison operators
    Practice: Write simple programs that use conditional statements.
    Project: Implementation of a number guessing game.

    Day 4: Loops

    Learn: For loops, while loops.
    Practice: Write loops to perform repetitive tasks.
    Project: print the first 10 numbers in the Fibonacci sequence:

    Day 5: Functions

    Learn: Function declarations, parameters, return values.
    Practice: Write functions to perform specific tasks.
    Project: Create a calculator with basic arithmetic operations.

    Day 6: Arrays

    Learn: Array declaration, accessing elements, array methods.
    Practice: Perform operations on arrays.
    Project: Build a to-do list where tasks can be added and removed.

    Day 7: Review and Project Day

    Review: Review the concepts learned during the week.
    Project: Go through quiz application with multiple-choice questions


    Week 2: DOM Manipulation and Events

    Day 8: Introduction to the DOM

    Learn: What is the DOM, selecting elements.
    Practice: Use getElementById, getElementsByClassName, querySelector.
    Project: Highlight specific elements on a webpage.

    Day 9: Modifying the DOM

    Learn: Changing element content, attributes, styles.
    Practice: Update HTML elements using JavaScript.
    Project: Building a simple page where users can change the color of text.

    Day 10: Event Handling

    Learn: Adding event listeners, handling events.
    Practice: Create buttons that respond to user clicks.
    Project: Build an interactive form that validates user input.

    Day 11: Advanced Event Handling

    Learn: Event propagation, event delegation.
    Practice: Handle events on dynamically added elements.
    Project: A project on a dynamic to-do list where tasks should be added, removed, and marked as completed.

    Day 12: Working with forms

    Learn: Form elements, form validation.
    Practice: Write JavaScript to validate form data.
    Project: Create a contact form which has validation.

    Day 13: Local Storage

    Learn: How to use local storage to store data.
    Practice: Store and retrieve data in local storage.
    Project: Take the to-do list further to save tasks in local storage.

    Day 14: Review and Project Day

    Review: Review concepts of the week.
    Project: Create a small web application that uses forms, events and local storage.


    Week 3: Advanced JavaScript Concepts

    Day 15: Functions and Scope

    Learn: Function expressions, arrow functions, scope.
    Practice: Use different types of functions and understand scope.
    Project: Build a simple task manager with functions.

    Day 16: Closures and Callbacks

    Learn: Closures, higher-order functions, callbacks.
    Practice: Write functions that use closures and callbacks.
    Project: Create a countdown timer with callbacks.

    Day 17: Promises and Async/Await

    Learn: Promises, async/await.
    Practice: Write asynchronous code using promises and async/await.
    Project: Build a simple app that fetches data from an API.

    Day 18: Working with APIs

    Learn: Fetch API, handling responses.
    Practice: Fetch and Display Data From a Public API. Project: Create a weather app that displays the current weather.

    Day 19: ES6 Features

    Learn: Let, const, template literals, destructuring, spread/rest operators in ES6.
    Practice: Use ES6 features in your code.
    Project: Refactor previous projects to ES6 syntax.

    Day 20: Classes and OOP

    Learn: ES6 classes; object-oriented programming concepts.
    Practice: Create classes, instantiate objects
    Project: Build a simple Library App that manages Books using classes.

    Day 21: Review and Project Day

    Review: Review advanced concepts learned during the week.
    Project: Building a more complex application that integrates asynchronous operations, API calls, and ES6 features.

    Week 4: Building and Deploying Projects


    Day 22: Modular JavaScript

    Learn: Modules, import/export statements.
    Practice: Split your code into modules.
    Project: Modularize a past project.

    Day 23: Webpack and Build Tools

    Learn: Introduction to Webpack, Setting up a build process.
    Practice: Bundle your JavaScript code with Webpack.
    Project: Configure a build process for a project.

    Day 24: Testing JavaScript

    Learn: How to write tests using frameworks like Jest.
    Practice: Write unit tests for your functions.
    Project: Add tests to a project.

    Day 25: Debugging and Best Practices

    Learn: How to debug, and best practices when writing clean code.
    Practice: Debug code and refactor for readability.
    Project: Review and improve a previous project.

    Day 26: Building a Full Project

    Project: Start working on a real project—a personal portfolio site or a small web app.

    Day 27: Continuing the Project

    Project: Continue the full project by adding features learned earlier.

    Day 28: Final Review and Deployment

    Review: Review all concepts learned over the past month.
    Deploy: Now deploy your Final Project on either GitHub Pages, Netlify, or Vercel.
    Additional Tips
    Daily Practice: Connect to a computer daily for at least 1-2 hours of actual coding to help solidify what is learnt.
    Seek Help: You should join online forums, be an active member in coding communities, and never be afraid to ask a question if stuck.
    Create Real Projects: Apply knowledge by building projects that are real and interesting to you. This will solidify the understanding and hence improve the skills.
    With this mapped-out calendar, you’ll be well on your way to learning JavaScript in a month.

  • Top five programming languages which will be in demand in the future

    Top five programming languages which will be in demand in the future

    Here are the top five programming languages which will be in demand in the future:

    Python: Very simple and versatile. You can use it for Data Science, Machine Learning, building websites, or automation. It also has a huge number of useful tools and a large community, thus it’s going to remain popular for quite some time.

    JavaScript is required to make interactive websites and is used in both mobile applications and server-side programming. You’ll probably want to know a little JavaScript if you’re working in the area of web development.

    Java: This is a reliable and powerful language used by big companies. It’s used for the development of large software systems, Android applications, and back-end services. It has been there for some time, so it’s not going anywhere soon.

    Go: Go is fast and self-effective; it is great for developing cloud services and modern software. It’s easy to use and pretty fit for large system development.

    TypeScript: TypeScript is, well, an enhanced JavaScript, so it makes managing huge projects easier, really very popular in web development since big applications are using it. A good language to learn for future job prospects.