Write a program to print the sum of first n odd numbers Test Case 1 Input (stdin) 5 Expected Output 25 Test Case 2 Input (stdin) 7 Expected Output 49
#include <iostream> using namespace std; int main() { int a,b; cin>>a; b=a*a; cout<<b; return 0; }