# Creating variables

**URL:** <https://forum.kirupa.com/t/creating-variables/229733>\
**Category:** Uncategorized\
**Created:** [June 19, 2007, 8:04pm UTC](https://forum.kirupa.com/t/creating-variables/229733 "2007-06-19T20:04:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mario\_hater](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mario\_hater](https://forum.kirupa.com/u/mario_hater)\
**Post date:** [June 19, 2007, 8:04pm UTC](https://forum.kirupa.com/t/creating-variables/229733/1 "2007-06-19T20:04:36Z")

</div>

ive been using Dev-c++ for a day and want to know how to create some variables in a for loop called val1 val2 val3 and so on. so far i have this:

for(int i=1;i\<=5;++i){  
float val+i;  
}
