0
Sum of first 4 number?
add the first 4 number using c language
2 Answers
+ 1
int main() {
int sum=0,n;
for(n=1;n<=4;n++){
sum+=n;
}
printf ("sum of first 4 no: %d",sum);
return 0;
}
+ 1
thanks
add the first 4 number using c language