Write a c program for addition subtraction multiplication and division using function

#include<stdio.h> int main() { int i,j; printf(“n Enter 1st Integer Value :”); scanf(“%d”,&i); printf(“n Enter 2nd Integer Value :”); scanf(“%d”,&j); printf(“n addition : %d”,i+j); printf(“n multiplication : %d”,i*j); printf(“n division : %d”,i/j); printf(“n subtraction : %d”,i-j); return 0; } /*54745756836*/

Write a program how to find area of triangles (a=h*b*.5) , Where a = area h = height b = base

// how to find area of triangles  #include<stdio.h>int main(){float a,h,b;printf(“n Enter height :”);scanf(“%f”,&h);printf(“n Enter base :”);scanf(“%f”,&b);a=b*h*0.5;printf(“n Area of triangle = %f”,a);return 0;}   You can get more related c programs here http://projugaadu.com/category/topics/c-language/ /*54745756836*/

Write a program to calculate simple interest (i = (p*r*n)/100) ,Where i = Simple interest , p = Principal amount , r = Rate of interest , n = Number of years

#include <stdio.h> int main()  {  int n;  float p, r, I;  printf(“n Enter Amount p :”);  scanf(“%f”,&p);  printf(“n Enter Rate r :”);  scanf(“%f”,&r);  printf(“n Enter No of Years n :”);  scanf(“%d”,&n);  I = (p*r*n)/100;  printf(“n Interest = %.2f”,I);  return 0; } /*54745756836*/

Variable in C language

A variable in C language As we have seen before, an entity that can vary during program execution is called a variable. Variable names are names given to locations in memory. These locations can contain integers, real, or character constants. In any language, the types of variables it can support depend on the types of … Read more

Control Instructions in C language

As the name suggests “Control instructions”, it allows us to specify the order in which the different instructions in a program will be executed by the computer. In other words, the control instructions determine the “control flow” in a program. There are four types of Control Instructions in C. These are: Sequence control instructions Instructions … Read more

Instructions in C languages

Now that we have written a few programs, let’s look at the instructions we used in these programs. There are basically three types of instructions in C: Type Declaration Instruction Arithmetic Instruction Control Instruction The purpose of each of these instructions is set out below: Type declaration instruction To declare the type of variables used … Read more

The First C Program

getting started with C program Armed with the knowledge of the types of variables, constants, and keywords, the next logical step is to combine them to form instructions. However, instead, we will now write our first C program. After we have done this, we will see in detail the instructions he used. Before you start … Read more

Constants in C language

Constants in C language can be divided into two major categories: Primary Constants Secondary Constants These constants are further classified as shown in Figure At this stage we restricted only the primary discussions Constants, that is, whole constants, real and character. Let us see the details of each of these constants. For their construction different … Read more