How to Print a String in C?
How to Print a String in C?

How to Print a String in C?

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

C Program to Print a String Entered by the User #include <stdio.h> int main() { char name[20]; // Character array printf("\n\tC Program to Print a string"); printf("\n\tEnter a string to…

Continue Reading How to Print a String in C?

C Program to Subtract Two Integers

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

Subtract Two Integers Entered by the User in C Programming //Write a program to subtract two integer in C? #include<stdio.h> int main() { int result,var1,var2; printf("Enter the values for var1…

Continue Reading C Program to Subtract Two Integers

C Program to Calculate Compound Interest

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

Compound Interest Formula Amount=P(1+r/100)t P=Principal Amountr=Rate of Interestt=Time Periods. Program to Find Compound Interest Using C Programming #include<stdio.h> #include<math.h> int main() { int principal_amount,rate_of_interest,Interest_applied,time_periods; printf("\n\n\tProgram to Find Compound Interest Using…

Continue Reading C Program to Calculate Compound Interest

C Program to Multiply Two Integers

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

Multiply Two Integers Entered by the User using C Program Pre-requisite Programming concepts C Input and Output OperationsC Operators Program #include<stdio.h> int main() { int result,var1,var2; printf("Enter the values for…

Continue Reading C Program to Multiply Two Integers

C Program to Find Simple Interest

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

How to Calculate Simple Interest? Simple interest can be calculated using the formula: Simple Interest SI=(p*t*r)/100. Here p is the principle amount. For this amount we are calculating the interest.…

Continue Reading C Program to Find Simple Interest
C Program to Print a Number
C program to print a number

C Program to Print a Number

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

In this article, you will be able to learn to write a program print an Integer entered by the user in c programming language. C Program to Print an Integer…

Continue Reading C Program to Print a Number

C Program to Find the Size of a Variable

  • Post author:
  • Reading time:1 mins read
  • Post category:C Programs

In C programming language you can check the size of a variable using sizeof operator. In order to use sizeof the zoperator, you can pass variable to the operator. Example:…

Continue Reading C Program to Find the Size of a Variable