Answers for "find the sum of all numbers from 1 to n"

C
2

how to find sum of two nums

#include<stdio.h>
int main() {
int a, b, sum;
printf("nEnter two no: ");
scanf("%d %d", &a, &b);
sum = a + b;
printf("Sum : %d", sum);
return(0);
Posted by: Guest on December-22-2020

Code answers related to "find the sum of all numbers from 1 to n"

Code answers related to "C"

Browse Popular Code Answers by Language