| | |
adding from 0 to a number that will be entered by the user .
Thread Solved
![]() |
•
•
•
•
%i and %d are equivalent. both of them specify the format for a signed decimal integer, and either are acceptable to use
for "scanf()", the %d and %i are subtly different ... %d requires a decimal (base 10) integer input, while %i assumes decimal by default, but will also read number as octal if it is prefixed by '0', or hexadecimal if prefixed by '0x' or '0X'
Last edited by jephthah; Jul 3rd, 2009 at 12:06 am.
•
•
Join Date: Nov 2008
Posts: 90
Reputation:
Solved Threads: 8
the meaning of
is same as the
C Syntax (Toggle Plain Text)
sum+=i;
C Syntax (Toggle Plain Text)
sum=sum+i;
![]() |
Similar Threads
- Displaying Prime Number (C#)
- How to sum cubes and squares of the number input by the user (C++)
- counting number of letters in the strings entered by the user (C++)
- help in function to return the number of items greater than certain number (C++)
- Please help! Sudoku in C (C)
- Trying To Find The Square Root Of Each Number Of A Array (C++)
- Loop program help (C++)
- Applet Help (Java)
- Mortgage Program help (Java)
Other Threads in the C Forum
- Previous Thread: help to work on structures..
- Next Thread: extract multidigits from a char* (substring)
| Thread Tools | Search this Thread |
* ansi array asterisks binarysearch calculate changingto char character cm convert copyanyfile copyimagefile copypdffile cprogramme creafecopyofanytypeoffileinc createprocess() database feet fflush fgets file floatingpointvalidation fork forloop function givemetehcodez global grade gtkwinlinux hacking histogram homework i/o inches infiniteloop input interest intmain() iso kernel keyboard kilometer km linked linkedlist linux locate looping loopinsideloop. lowest match meter microsoft mqqueue number oddnumber odf open opendocumentformat openwebfoundation owf pattern pdf performance posix power probleminc process program programming pyramidusingturboccodes radix read recv recvblocked research reversing scanf segmentationfault sequential single socket socketprograming socketprogramming standard string suggestions systemcall threads turboc unix urboc user variable voidmain() wab whythiscodecausesegmentationfault win32api windowsapi






