Tags » C Program

Arithmetic operations

C++ program to perform arithmetic operations :

code

#include<iostream.h>
#include<conio.h>

void main()
{
int a,b,add,sub,div,mul;
clrscr();
cout<<“Arithmetic Operations :\n”;
cout<<“\nEnter first number :”;
cin>>a;
cout<<“\nEnter second number :”; 58 more words

C Program

String palindrome / not

C program to check entered string is palindrome or not :

code

#include<stdio.h>
#include<conio.h>
void main()
{
char str;
int len,i,flag=0;
clrscr();
printf(“Enter string to check it palindrome or not :”); 51 more words

C Programs

Arithmetic operation using function

C program to perform arithmetic operation using function:

code

#include<stdio.h>

#include<conio.h>

void cal(int,int);

void main()

{

int a,b;

clrscr();

printf(“Enter first element :”);

scanf(“%d”,&a);

printf(“Enter second element :”); 73 more words

C Programs

Area of circle using function

C program to find area of circle using function :

code

#include<stdio.h>
#include<conio.h>
void area();
void main()
{
clrscr();
area();
getch();
}
void area()
{ 35 more words

C Programs

Accept & display matrix

C program to accept & display matrix element :

code

#include<stdio.h>
#include<conio.h>
void main()
{
int a[2][2];
int i,j;
clrscr();
printf(“Enter matrix element:”);
for(i=0;i<2;i++)
{ 62 more words

C Programs

Subtract matrix

C program to subtract two matrix :

code

#include<stdio.h>
#include<conio.h>
void main()
{
int a[2][2],b[2][2],c[2][2];
int i,j;
clrscr();
printf(“Enter first matrix :”);
for(i=0;i<2;i++)
{
for(j=0;j<2;j++) 134 more words

C Programs

Addition of matrix

C program to add two matrix :

code

#include<stdio.h>
#include<conio.h>
void main()
{
int a[2][2],b[2][2],c[2][2];
int i,j;
clrscr();
printf(“Enter first matrix :”);
for(i=0;i<2;i++)
{
for(j=0;j<2;j++) 132 more words

C Programs