Power series of 3 using c programming language
C Programming Language / Function in C Language
1146Program:
#include #include void main() { int i,m; for(i=1; i<=20; i++) { m = pow(3,i); printf(" 3^%d = %d \n",i,m); } }
Output:
3^1 = 3 3^2 = 9 3^3 = 27 3^4 = 81 3^5 = 243 3^6 = 729 3^7 = 2187 3^8 = 6561 3^9 = 19683 3^10 = 59049 3^11 = 177147 3^12 = 531441 3^13 = 1594323 3^14 = 4782969 3^15 = 14348907 3^16 = 43046721 3^17 = 129140163 3^18 = 387420489 3^19 = 1162261467 3^20 = -2147483648 Press any key to continue . . .
Explanation:
Power series of 3 using c programming language
This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS