Search
 
SCRIPT & CODE EXAMPLE
 

C

how to add 1 to 10 in c

#include<stdio.h>
#include<conio.h>

int main( void )
{
int a = 0;

for(int i = 1; i <= 10; i++)
{
    a = a + i;
    printf("%d	
", i);
}
printf("The sum of all num is: %d", a);

return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: memory layout in c 
C :: c program to find the frequency of characters in a string 
C :: keep last n bits 
C :: delete string function in c 
C :: passing two dimensional array to function in c 
C :: solana-test-validator log 
C :: stack push 
C :: link list c 
C :: addition of matrix 
C :: getchar in c 
C :: replace a substring with another substring in c 
C :: stdio.h 
C :: how to sort an int array in c 
C :: . Simulate MVT and MFT. 
C :: ex: C hello world 
C :: getline() in c 
C :: insert image material ui 
C :: nested while loop in c 
C :: how to print logs when doing unit-testing in rust 
C :: les fichiers en c 
C :: ecto where is not nil 
C :: Number 10 
C :: convert c to phyton 
C :: resto de division recursiva 
C :: Battlefield4u.com 
C :: counting sort using malloc and size-t type c 
C :: c to assembly converter online 
C :: 11*179*.9*1.35 
C :: garbage collection and dangling reference 
C :: Print the number 0 using write() 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =