Upper and Lower triangle Matrix Using C program
In this program we will be discussing on how to convert a square matrix into corresponding upper and lower triangle matrix.
LOGIC:
If for a(ij) :
i=j, represents main...
The perfect website for a perfect Engineer
Showing posts with label cp. Show all posts
Showing posts with label cp. Show all posts
Home > Posts filed under cp
Sunday, 8 October 2017
Saturday, 30 September 2017
Sum of numbers using c program
In this tutorial we will discuss on how to find the sum of
two numbers using c program.
For any c program the header file that must be included is
stdio.h which stands for standard input output.
PROGRAM:
#include<stdio.h>
void...
Upper case String to Lower case string
/* C Program - Convert Uppercase String to Lowercase */
#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
clrscr();
char str[20];
int i;
printf("Enter the String (Enter First...
Search an element in an array
#include<stdio.h>
void main() {
int a[30], ch, num, i;
printf("\nEnter no of elements :");
scanf("%d", &num);
printf("\nEnter the values :");
...
Matrix addition,multiplication and substraction using c program
/* MATRIX ADDITION, SUBTRACTION AND MULTIPLICATION */
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,c,r,k;
int...
Find mean,median and mode using c program
#include<stdio.h>
main()
{
int i,j,a[20]={0},sum=0,n,t,b[20]={0},k=0,c=1,max=0,mode;
float x=0.0,y=0.0;
printf("\nEnter the limit\n");
scanf("%d",&n);
printf("Enter the set of numbers\n");
for(i=0;i<n;i++)
...
Subscribe to:
Posts (Atom)
Convert a square matrix to Lower and Upper Triangular Matrix
Upper and Lower triangle Matrix Using C program In this program we will be discussing on how to convert a square matrix into correspon...