Home C C++ C# Java SQL HTML Css Javascript XML Ajax Android Cloud Design Pattern Quiz Projects Interview Q Comment Forum
Home C C++ C# Java SQL HTML Css Javascript XML Ajax Android Cloud Design Pattern Quiz Projects Interview Q Comment Forum
Home C C++ C# Java SQL HTML Css Javascript XML Ajax Android Cloud Design Pattern Quiz Projects Interview Q Comment Forum
C
C++
C#
Java
SQL
HTML
CSS
JavaScript
XML
Ajax
Android
Cloud
Design Pattern
Quiz
Projects
Interview Q
Comment
Forum
C TutorialC Control StatementsC FunctionsC ArrayC PointersDynamic Memory
AllocationC StringsC Structure UnionC File HandlingC PreprocessorCommand Line
Arguments
C Programs
Top 10+ C ProgramsFibonacci SeriesPrime NumberPalindrome NumberFactorialArmstrong NumberSum
of digitsReverse NumberSwap NumberPrint "Hello" without ;Assembly code in CC program without
mainMatrix MultiplicationDecimal to BinaryNumber in CharactersAlphabet TriangleNumber
TriangleFibonacci Triangle
C Interview
C Interview Questions
next →← prev
C Programs
C programs are frequently asked in the interview. These programs can be asked from basics, array, strin
1) Fibonacci Series
Write a c program to print fibonacci series without using recursion and using recursion.
Input: 10
Output: 0 1 1 2 3 5 8 13 21 34
2) Prime number
Input: 44
Input: 7
Output: prime number
3) Palindrome number
Input: 329
Input: 12321
4) Factorial
Input: 5
Output: 120
Input: 6
Output: 720
5) Armstrong number
Input: 153
Output: armstrong
Input: 22
6) Sum of Digits
Input: 234
Output: 9
Input: 12345
Output: 15
7) Reverse Number
Input: 123
Output: 321
Input:
Output:
Input: 5
Output: 101
Input: 20
Output: 10100
Output:
A
ABA
ABCBA
ABCDCBA
ABCDEDCBA
Input: 7
Output:
Input: 5
Output:
1
1 1
1 1 2
1 1 2 3
1 1 2 3 5
Input: 5
Output: five
Input: 203
← prevnext →
Please Share
Join Javatpoint Test Series
Placement PapersTCSHCLInfosysIBMAccenture
AMCATeLitmasJavaPythonC ProgrammingNetworking
Bank PO/ClerkUPSSSCGovernment ExamsSSCCivil ServicesSBI
GATENEETCATRailwayCTETIIT JEE
NGINX
SSRS
Blockchain
ETL
Bugzilla
Hive
Jenkins
Pytorch
QA
Agile
JIRA
Tableau
Preparation
Aptitude
Reasoning
Verbal A.
Interview
Company
Trending Technologies
AI
AWS
Selenium
IoT
Cloud
Hadoop
ReactJS
React Native
Node.js
D. Science
Angular 7
B.Tech / MCA
DBMS
DS
DAA
OS
C. Network
Compiler D.
COA
D. Math.
E. Hacking
C. Graphics
Software E.
Web Tech.
Cyber Sec.
Automata
C++
Java
.Net
Python
Programs
Control S.
Javatpoint Services
JavaTpoint offers too many high quality services. Mail us on hr@javatpoint.com, to get more
information about given services.
o Website Designing
o Website Development
o Java Development
o PHP Development
o WordPress
o Graphic Designing
o Logo
o Digital Marketing
o PPC
o Content Development
o Corporate Training
o Data Entry
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop,
PHP, Web Technology and Python. Please mail your requirement at hr@javatpoint.com.
Duration: 1 week to 2 week
OUR WEBSITES
Javatpoint.comHindi100.comLyricsia.comQuoteperson.comHindi-
typing.comShayaree.comJobandplacement.com
OUR SERVICES
Website Development
Android Development
Website Designing
Digital Marketing
Summer Training
Industrial Training
CONTACT