Safcode Institute by Sir Safder





  • User Input in C

    There are many function In C language to take an input from user,
    like getchar(), gets(), etc. But scanf() function is one of the
    commonly used function to take input from the user.
    When we use scanf() or printf() function we need format specifier.
    
    Example:
    #include<stdio.h>
    #include<conio.h>
    int main()
    {
        int age;
        printf("Enter Your Age: ");
        scanf("%d", &age);
        printf("Your Age Is: %d ", age);
    
        getch();
        return 0;
    }
    



  • You Can Also Watch Our Tutorial