Posts

Doing Sum using C language.

 #include<stdio.h> int main() {     int x ,y ;     printf("Enetr x: ");     scanf("%d", &x);     printf("Enetr y: ");     scanf("%d", &y);     printf("sum of x and y is :  %d",x+y);     return 0; }     My YouTube Channel :: Viral Bhoi - YouTube Thanks for visiting my Blog. Hopefully it helped you. Please check out more blogs for practice. We will meet soon. bye. Jay Hind...

Taking Input Using C language.

 #include<stdio.h> int main() {     int num; printf("Please enter a number :");         scanf("%d", &num);         printf("Number is : %d", num); return 0; } My YouTube Channel :: Viral Bhoi - YouTube Thanks for visiting my Blog. Hopefully it helped you. Please check out more blogs for practice. We will meet soon. bye. Jay Hind...

Printing char using C language.

 #include<stdio.h> int main() {     char hash = '#'; printf("charecter is %c\n", hash); return 0; } My YouTube Channel :: Viral Bhoi - YouTube Thanks for visiting my Blog. Hopefully it helped you. Please check out more blogs for practice. We will meet soon. bye. Jay Hind...

Printing float pi using C language.

Image
Printing the value of pi as a float variable in the C language is an important skill for any programmer. In this blog post, we will explore the different ways to print the value of pi as a float variable in C, including the use of the  printf   function and format specifiers. Whether you are a beginner or an experienced programmer, this post will provide valuable insights and tips on how to effectively print the value of pi as a float variable in your C programs .  #include<stdio.h> int main() {     float pi = 3.14; printf("Number is %f\n", pi); return 0; } This is a simple C program that prints the value of a float variable to the standard output. Here is an explanation of each line of the code: #include<stdio.h> : This line includes the  stdio.h  header file, which contains the declarations for the  printf  function used in the program. int main() { : This line defines the  main  function, ...

Printing Number (Integer) Variable in C Language

Image
Printing integer variables in the C language is a fundamental concept that every programmer should know. In this blog post, we will explore the different ways to print integer variables in C , including the use of the  printf  function and format specifiers. Whether you are a beginner or an experienced programmer, this post will provide valuable insights and tips on how to effectively print integer variables in your C programs.   #include<stdio.h> int main() {     int num = 25; printf("Number is %d\n", num); return 0; } This is a simple C program that prints the value of an integer variable to the standard output. Here is an explanation of each line of the code: #include<stdio.h> : This line includes the  stdio.h  header file, which contains the declarations for the  printf  function used in the program. int main() { : This line defines the  main  function, which is the entry point of the pr...