Arithmetic Operators

How To Calculate GST% By Using C

To Calculate GST% by Using  C .  Here are  really simple coding of C. #include<stdio.h> #include<conio.h> #include<math.h> void main () { float original_cost,GST,Netprice,GST_Amount; clrscr(); printf(“Calculate the GST on your product\n”); printf(“Enter Original cost of your product\n”); scanf(“%f”,&original_cost); printf(“Enter the Percent of GST on that product\n”); scanf(“%f”,&GST); GST_Amount=(original_cost*GST)/100; Netprice=original_cost+GST_Amount; printf(“Your Netprice=%f”,Netprice);…

Celsius To Fahrenheit And back In C

Q. Changing  Celcius to Fahrenheit And back in C  by simple program. #include<stdio.h> #include<conio.h> void main() { int option; float c,f; clrscr(); printf(“Enter c for celsius to fahrenheit, f for the reverse\n”); option=getch(); switch(option) { case ‘c’: case ‘C’: printf(“Enter value in celsius\n”); scanf(“%f”,&c); f=(c*9)/5 + 32; printf(“%0.2f celsius is…

Area Of Circle In C

Q. How to Find Area of Circle In C ? #include<stdio.h> #include<conio.h> #include<math.h> void main() { float r,area; clrscr(); printf(“Enter the radius of circle”); scanf(“%f”,&r); area=r*r; area=area*3.14; printf(“%0.2f”,area); getch(); } After Running Program  🙂    

Numbers and Operations on Numbers in JavaScript

A Number type A numeric value in JavaScript is a double-precision, 64-bit binary format, IEEE 754 value. The storage format is: 0-51: fraction, 52-62: exponent, bit 63 is sign.  The highest value that can be represented internally is 253 which is 9,007,199,254,740,994. Then they are stored as powers of 2(2exponent).  Special values…