0% found this document useful (0 votes)
174 views1 page

C Programming Exercises - For Loop - W3resource

The document is about C programming exercises involving for loops. It provides 59 exercises with solutions to practice writing for loops in C to display and calculate values of natural numbers and their sums up to a given term. The exercises cover using for loops to display the first 10 natural numbers and their sum, as well as displaying and summing n terms of natural numbers as specified in test data input.

Uploaded by

RISHITHA LELLA
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
174 views1 page

C Programming Exercises - For Loop - W3resource

The document is about C programming exercises involving for loops. It provides 59 exercises with solutions to practice writing for loops in C to display and calculate values of natural numbers and their sums up to a given term. The exercises cover using for loops to display the first 10 natural numbers and their sum, as well as displaying and summing n terms of natural numbers as specified in test data input.

Uploaded by

RISHITHA LELLA
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 1

 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 :

You might also like