w3resource
Home C Programming Exercises, Practice, Solution : For Loop
C Programming Home
Last update on January 22 2021 13:01:03 (UTC/GMT +8 hours)
▼C Programming Exercises
Home
Basic Declarations and
Expressions
Basic Algorithm
Variable Type
Input - Output C For Loop [59 exercises with solution]
Conditional Statements
For Loop
1. Write a program in C to display the first 10 natural numbers. Go to the editor
Array
Expected Output :
Pointer
1 2 3 4 5 6 7 8 9 10
Linked List
Click me to see the solution
Numbers
String 2. Write a C program to find the sum of first 10 natural numbers. Go to the editor
Date Time Expected Output :
Math The first 10 natural number is :
Function 1 2 3 4 5 6 7 8 9 10
Recursion The Sum is : 55
File Handling Click me to see the solution
▼Algorithm Avoid Grammatical Errors
3. Write a program in C to display n terms of natural number and their sum.Go to the editor with This Helpful Browser…
Searching and Sorting Algorithm
Grammarly | Sponsored
Practice Test Data : 7
This site
..More uses cookies to deliver ourExpected
to come.. Output
services and : you relevant ads. By using our site, you acknowledge that you have read and understood our Privacy Policy. Your use of
to show Got it!
Read Next Story
w3resource Services, is subject to these policies
The first More info
7 natural number is :