This Calculator can do basic operations. Click here to download the project
Oct 26 2009
Multiple Table
This program show a multiple table
/*Exercise 4.1*/ #include<stdio.h> int main (void) { int input,i,j,ans; printf("Enter the number: "); scanf("%d",&input); for(i=1;i<=input;i++) { printf("\t(%d)\t",i); } printf("\n----------------------------------------------------------------------------------------------------"); for(i=1;i<input+1;i++) { ans=1; printf("\n(%d)",i); for(j=1;j<=input;j++) { ans=i*j; printf("\t %d\t",ans); } printf("\n--------------------------------------------------------------------------------------------------"); } printf("\n"); return 0; } |
Download Source code & exe
Sep 15 2009
Temp Converter
/*Convert a Celsius temperature to Fahrenhit*/ #include<stdio.h> main() { float tmpc; float tmpf; printf("Enter Celsius temperature:"); scanf("%f",&tmpc); tmpf=32+tmpc*9/5; printf("Farenhit temperature:%.2f\n",tmpf); fflush(stdin); getchar(); } |
Next Page »