print 1 to 10 numbers with array in c
nrupparikh -3 Newbie Poster
Ezzaral commented: Wow, you're a well of useless questions... and in the wrong forum too! -3
Recommended Answers
Jump to PostSee the answer from this thread
http://www.daniweb.com/forums/thread164796.htmlModify as appropriate.
Jump to Post... and here is how you would do this with Python:
arr = [12, 7, 9, 25, 87] for item in arr: print(item)
Just to compare the syntax, here is the same thing in C:
#include <stdio.h> int main() { int arr[] = {12, …
Jump to PostThere is "no beauty" in even simple C code! Let's all thank the Python development team for giving us a readable syntax. Come to think of it, they all were very fluent in C since the core of Python is writtten in C.
I guess the true beauty of …
All 9 Replies
mn_kthompson 3 Junior Poster
Ene Uran 638 Posting Virtuoso
sneekula 969 Nearly a Posting Maven
Stefano Mtangoo 455 Senior Poster
Aia 1,977 Nearly a Posting Maven
Gribouillis 1,391 Programming Explorer Team Colleague
Aia 1,977 Nearly a Posting Maven
Gribouillis 1,391 Programming Explorer Team Colleague
Aia 1,977 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.