C Code for Battery Charge

This c programming code is used to find the battery charge. You can select the whole c code by clicking the select option and can use it. When you click text, the code will be changed to text format. This c program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this c code and use it to find the battery charge.

#include<stdio.h>
#include<math.h>
int main()
{
     float a,f=4,g=6,b,c,d,e;
     a=((f/g)*11)/10; 
     b=((f/g)*12)/10 ;
     c=((f/g)*13)/10;
     d=((f/g)*14)/10;
     e=((f/g)*10)/10;
     printf("Maximum Time To Full Charge (10%)  = %f",a);
     printf("
Maximum Time To Full Charge (20%)  = %f",b);
     printf("
Maximum Time To Full Charge (30%)  = %f",c);
     printf("
Maximum Time To Full Charge (40%)  = %f",d);
     printf("
Maximum Time To Full Charge (No)  = %f",e);
     return(0);
}
Other Programming Codes
Online Calculator : Battery Charge
Click on the select code link to copy and paste this free c program code for battery charge.

english Calculators and Converters

Ask a Question


Sitemap