C program for Selection Sort

Write a C Program For Selection Sort  In Selection sort, the smallest element is exchanged with the first element of the unsorted list of elements (the exchanged element takes the place where smallest element is initially placed). Then the second smallest element is exchanged with...

Write a C program for Calculator

Write a C program for Calculator #include<stdio.h>main(){char choice;float num1,num2,result;int flag=1; printf(“Enter +,-,/,* for knowing the resultn”);scanf(“%c”,&choice); printf(“Enter the number 1n”);scanf(“%f”,&num1); printf(“Enter number 2n);scanf(“%f”,&num2); switch(choice){ case ‘+’:result=num1+num2; break;case ‘-‘: result=num1-num2;break; case ‘/’: { if(num==2)  {   flag=0;    }else{ result=num1/num2;}break;}case ‘*’: result= num1*num2;break;default : printf(“Error”);break;}if(flag==1){printf(“%f %c %f = %f “,...