-
Error in printing series 1, (1+1)^2= 4, (4+1)^2 =25 upto 10 terms.
Error in printing series 1 , (1+1)^2= 4 , (4+1)^2 =25 upto 10 terms.
Code:integer i , n1=1 , n2=1 , n3=2 , n4=1 , count=10;
for(i=0;i<count;i++)
{
n4 = (n1+n2)*(n1+n2);
System.debug(n1 + ', (' + n1 + '+' + n2 + ')^' + n3 + '=' + n4 + ' , ');
n1=n4;
}Screenshot:

debug in different lines not in a single line . How to debug in a single line like a whole series?
Log In to reply.
Popular Salesforce Blogs
Boost your Business Growth with Salesforce Easy
In this competitive edge, we are continuously advancing in technologies and seeking solutions to grow our business to get ahead in the corporate world. Various…
Rev Up Your Business With Top 10 Free Apps On Salesforce AppExchange
Do you know many apps on the Salesforce AppExchange can assist in streamlining your operation and boosting your bottom line without any additional cost? Installing…
Automation in Financial Services Cloud: 7 Automated Processes for FinTech
Digital-first customers dominate financial services — and they aren’t very satisfied. While many consumers have become accustomed to conducting their financial transactions online due to…
Popular Salesforce Videos
Add Intelligence to Any Salesforce App with Einstein Discovery
Bring intelligence in the context on any Force.com app thanks to the power of Einstein Data Discovery. Any Salesforce Admin or Developer can add in…
MuleSoft Integration: Salesforce Event with AWS MySQL Database
Learn how to integrate Salesforce Event with AWS MySQL Database using MuleSoft. The video will cover these four points - 1. Introduction Integrating Salesforce and…
Salesforce Administrator and Developer Training | Salesforce Training Videos
This Salesforce Training video is a demo of how the live online instructor-led classes take place after you enroll for the Online Classroom. All training…
