-
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
5 Essential Skills That You Need To Survive In The Salesforce Community
Don’t get me wrong; nobody is doubting your technical skills, but to stay in the Salesforce community and get noticed, there are certain things that…
Top 5 Questions Asked for Salesforce Document Management
Massive number of documents required to be managed in any CRM solution apart by just uploading and sharing the documents. So users expect CRM to…
How Can the Real Estate Sector Use Salesforce to Standardize Its Sales Funnel?
The pandemic has changed how businesses conduct their daily operations. Before the pandemic, the real estate industry was going strong, but its activities slowed down…
Popular Salesforce Videos
Use Salesforce CMS to Manage and Publish Content for Experience Cloud Sites
Learn how Salesforce CMS helps you create, manage, and publish your content in Experience Cloud. With Salesforce CMS, you can also customize content for specific…
Guided Selling with Salesforce CPQ
Do you know how to set up guided selling in Salesforce CPQ? In this demo video, we'll show you three easy steps to set up…
What is CRM? | Salesforce Essentials 101 | Salesforce
In this video, Salesforce Support explains how Customer Relationship Management (CRM) can help companies better engage with prospects, and customers, and streamline communications for business…
