price, tip, tax given find total cost in round figure

#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
//price 12.00
//tip 20
//tax8
//Your Output 15
//round function in math.h headerfile
	double price;
	float tip,tax;
	scanf("%lf%f%f",&price,&tip,&tax);
	tip=(price/100)*tip;
	tax=(price/100)*tax;
	int total = (int)round(price+tip+tax);
	printf("%d",total);
	return 0;
}

OUTPUT

12.00  //price
20      //tip
8      //tax
15     total cost round figure.

enter the marks of students and find their sum and avarage

#include<stdio.h>
#include<conio.h>
int main()
{
	int i,num,sum=0,hmarks;
	int arr[20];
	float avg;
	printf("\nenter the number of students :");
	scanf("%d",&num);
	printf("\nenter the marks of the students\n");
	for(i=0;i<num;i++)
	{
		scanf("\n%d",&arr[i]);
		sum=sum+arr[i];
	}
	printf("\ntotal marks of students :%d",sum);
	avg=sum/num;
	printf("\naverage marks of the students :%f",avg);
	for(i=0;i<num;i++)
	{
		
	}
	return 0;
}

insertion operation in array

//insertion operation in array.
#include<stdio.h>
#include<conio.h>
int main()
{
	int A[]={5,9,3,7,8};
	int n=5,item=10,k=3;
	int i=0,j=n;
	printf("\narray before operation...\n");
	for(i=0;i<n;i++)
	{
		printf("\nA[%d]=%d",i,A[i]);
	}
	n=n+1;
	while(j>=k)
	{
		A[j+1]=A[j];
		j=j-1;
	}
	A[k]=item;
	printf("\narray after insertion...\n");
	for(i=0;i<n;i++)
	{
		printf("\nA[%d]=%d",i,A[i]);
	}
	return 0;
}

Make a Calculator Using Switch Case in C Programming

How to make an easy calculator of four operations ( + , – , * , / ) by using switch case in c programming.

Codes are here….

Let see the codes

#include<stdio.h>
int main()
{
int a,b,c,result;
char operator;

printf("enter your choice\n1=+\n2=-\n3=*\n4=/\n");
scanf("%c",&operator);

printf("enter two numbers\n");
scanf("%d%d",&a,&b);

switch(operator)
    {
    case'1':
        result=a+b;
        break;
    case'2':
        result=a-b;
        break;
    case'3':
        result=a*b;
        break;
    case'4':
        result=a/b;
        break;
    default:
        printf("\nyou have entered blank option");
    }

printf("\nresult is =%d",result);   
getchar();
}

Output:

enter your choice
1=+
2=-
3=*
4=/
1
enter two numbers
10
20
result is =30
[Process completed - press Enter]

Let see in C Programming softwere….

Page: 1
Page: 2
Page: 3

Output:

Output