-
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
Learn About List and Set in Salesforce
LIST List is an ordered collection. List allows duplicates. We can access list elements with indexes. We can sort the list element with sort attributes.…
Salesforce's Top 10 Summer '21 Release Features
In the digital-first world, things change at the speed of light. New technologies, software, techniques are innovated, upgraded, and updated every day. One must keep…
How to Maximize ROI with a Salesforce Consultant: Tips and Strategies
When it comes to CRM solutions, Salesforce is a powerhouse, offering extensive features that can propel any business forward. However, to truly leverage the full…
Popular Salesforce Videos
Accenture Salesforce Training 2022
This video is about -Accenture Salesforce Training 2022 Orientation session and ASE SFDC Salesforce Certification. As the trusted leader in Salesforce implementation and transformation, Accenture can…
Reaching Potential Customers With Salesforce Marketing Cloud
Salesforce Marketing Cloud helps businesses in closely observing consumer behavior. Marketing Cloud has a number of platforms that are well-segregated and immensely useful in defining…
Transition to Salesforce Lightning Experience
Transition to Salesforce Lightning Experience for Overall Navigation, Global Search, Home Page, Accounts, Leads and Opportunities. This video walks you through the recommended process, including…