Question

compute x = e^t using while loop in c programming, where t is days from 1...

compute x = e^t using while loop in c programming, where t is days from 1 to 7 and let the answer be in tabular form with x and t on the first row. x values should be whole numbers.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#source code:

#include <stdio.h>

#include <math.h>

int main(){

printf("t\tx\n");

for(int t=1;t<=7;t++){

int x=(int)exp(t);

printf("%d\t%d\n",t,x);

}

return 0;

}

#source code along with output:

1 2 3 4 #include <stdio.h> #include <math.h> int main() { printf(t\tx\n); for(int t=1;t<=7;t++) { int x=(int)exp(t); printf

#if you have any doubt or more information needed comment below..i will respond as possible as soon..thanks..

Add a comment
Know the answer?
Add Answer to:
compute x = e^t using while loop in c programming, where t is days from 1...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT