n natural numbers

asaalam o alaikum frndzz..
what is the c program for first n natural numbers???
Last edited on
We are not a code writing service. If you don't want to learn better go to:
https://www.assignmentexpert.com/blog/do-my-c-homework/
http://www.tutorsonnet.com/c++-programming-homework-help.php
i just want a help and how know about it.
No, you want someone to do your work for you. Put some effort in to it. Your problem is about as easy as it gets, right there with "Hello world!"

Thomas1965 already gave an excellent answer to your question:
Thomas1965 wrote:
We are not a code writing service. If you don't want to learn better go to:
https://www.assignmentexpert.com/blog/do-my-c-homework/
http://www.tutorsonnet.com/c++-programming-homework-help.php


Hint: google around "natural numbers" and "c++ for loop".

When you get stuck, post what you've done and then we'll be happy to help you figure out where you're going wrong with your code. (So far, you've gone wrong with asking the [edit]wrong[/edit] question.)

Hope this helps.
Last edited on
got it thanks
i have done it by my own effort
Glad you got it!

Loops are one of the most important control constructs you'll learn. A for-loop is ubiquitous in C++.

When you really get stuck, because something about a problem or the way C++ works doesn't make sense, please feel free to ask more questions.
Topic archived. No new replies allowed.