#include <stdio.h>
int main() { int n, sum = 0, temp, r; printf("Enter an integer\n"); scanf("%d",&n); temp = n;