Welcome.please sign up.
By signing up or logging in, you agree to our Terms of serviceand confirm that you have read our Privacy Policy.
Already a member? Go to Log In
Welcome.please login.
Forgot your password
Not registered yet? Go to Sign Up
#include <stdio.h> int main() { int i,n,sum; printf("Enter value of n\n"); scanf("%d",&n); sum = 0; for(i=1;i<=n;i++) { sum = sum+i; } printf("%d\n", sum); }