Answers for "Uri/Beecrowd problem no - 1149 solution in C"

C
0

Uri/Beecrowd problem no - 1149 solution in C

#include<stdio.h>
int main(){
    int A,N,sum = 0,i;
    scanf("%d%d", &A, &N);
    while(N < 0 || N == 0){
        scanf("%d", &N);
    }
    for(i = 0; i < N; i++){
        sum = sum + A + i;
    }
    printf("%dn", sum);
    return 0;
}
Posted by: Guest on January-19-2022

Code answers related to "Uri/Beecrowd problem no - 1149 solution in C"

Code answers related to "C"

Browse Popular Code Answers by Language