Friday, February 3, 2012

Air traffic control office Automation for Calicut International Airport

Air traffic control office Attendance register is one of the efficient softwares done by i-St@r Developers for Calicut International Airport. The coding and optimization carried out by VISUAL STUDIO C# platform. 

Wednesday, February 1, 2012

Source codes for Calculator Project using C language

This is a simple C language project. You can create your own executable calculator using C programming. The source codes and step by step procedure to execute this project is explained below. The C source is suitable for learning C for beginners. This C tutorial also explain how to make EXE fies, the EXE files can be executed without C compiler.

Source Codes


#include<stdio.h>
#include<conio.h>
#include<math.h>
main()
{
float fno,sno,result;
char op;
printf("\n\ti-St@r Calculator\n");
calc:
scanf("%f",&fno);
printf("+ - * / r " );
scanf("%s",&op);
if(op!='r')
{
scanf("%f",&sno);
switch(op)
{
case '+': result=fno+sno;break;
case '-': result=fno-sno;break;
case '*': result=fno*sno;break;
case '/': result=fno/sno;break;
}
}
if(op=='r')
{
result=sqrt(fno);
}
printf("\n%f\n\n",result);
goto calc;
}

 
Leave a comment

Login