Matrix Addition in C

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

In this example, you will be able to add two matrices. To add two matrices using c programming you must have some knowledge on: C-DatatypesC-ArrayC-OperatorsC-Input OutputLoops in C Program to…

Continue Reading Matrix Addition in C

C Program to Swap Two Numbers | 4 Methods

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

In this programming tutorial, you will be able to learn how to swap two numbers. There are 4 methods explained. In order to understand the programming examples, you should have…

Continue Reading C Program to Swap Two Numbers | 4 Methods

C Program to Divide Two Integers

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

In this example, you will learn how to divide two integers. In order to understand this programming example you should have some knowledge on: C DatatypesC OperatorsC Input-output Operations Divide…

Continue Reading C Program to Divide Two Integers
C Program to Multiply Two Floating-Point Numbers
C Program to Multiply Two Floating-Point Numbers

C Program to Multiply Two Floating-Point Numbers

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

In this programming example, you will learn how to multiply two floating-point numbers using c programming. In this programming example, you will read two floating-point numbers from the user, multiply…

Continue Reading C Program to Multiply Two Floating-Point Numbers
String Length in C Programming
String Length in C Programming

String Length in C Programming

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

C Program to Find the Length of a String You can call strlen() function to find the length of an array as shown below: #include<stdio.h> #include<string.h> int main() { char…

Continue Reading String Length in C Programming
C Program to Add Two Integers
C Program to Add Two Integers

C Program to Add Two Integers

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

C program to Add Two Integers Entered by the User #include<stdio.h> int main() { int result,var1,var2; printf("Enter the values for var1 and var2 \n"); scanf("%d %d",&var1,&var2); result=var1+var2;//calculating sum printf("The result…

Continue Reading C Program to Add Two Integers
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