Loops – Arithmetic – Problem #8
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Difficulty: Medium
Problem Statement
Write a program that takes a positive integer n and displays the first n terms of the following series: 1, -1, 2, -3, >, -8, ... You need to handle cases when the user enters or negative numbers by giving appropriate messages.