Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
#include stdio.h #include math.h
float discharge(float,float); void main() { char prompt; float time,out,cr; cr = 100e-6; for (time = 0;time<=5*cr;time+=10e-6) { /* call the function */ out = discharge(time,cr); /*Note g formattor defaults to expontential */ printf("The capacitor voltage at time %10.5g seconds is %5.3f \n\r ",time,out); } printf("Press any key to exit \n\r"); scanf("\n%c",&prompt); } float discharge(float t,float cr) { float vs,vc; /* calculate the discharge */ vs = 10.0; vc = vs*exp(-t/cr); return(vc); }
Calculate the area of circle using c program: const float Pi = 3.1415926; inline float area(const float r) {return Pi * r * r;} main() { float radius;
Write a Program to illustrate passing structure to function? # include struct customer { int id; char name[15]; }; void func_struct(struct customer); main() { struct c
Input function
Program is to display the contents of file on a screen: Write a program to display the contents of file on a screen void main() { clrscr(); ifstream fin("ascii
types of data types
Shell sort - C Program: Write a program to define shell sort. void main() { //program for sorting by select sort int a[20],i,k,j,n; clrscr();
At a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with thes
example of program to add two number
a program to accept average, if average is 75 to 85 print it out else bypass using counter. enter and process 5 records
explain thee structure of c program
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd