Forum: C Jun 27th, 2009 |
| Replies: 11 Views: 625 Well firstly, unless it is compiler specific, I have never seen %i before. A decimal integer is usually %d.
Secondly, given what you are doing, you presumably want the user to enter a positive... |
Forum: C Jun 27th, 2009 |
| Replies: 11 Views: 625 #include <stdio.h>
#include <stdlib.h>
int main()
{
int number;
int sum;
int i;
printf("please enter the end number : \n" ); |