-
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
Building Your First App for Salesforce AppExchange: A Step-by-Step Solution
Are you looking to build an application for Salesforce AppExchange? You must be familiar with Salesforce and how it works. Knowing the platform's capabilities can…
Best Practices for Data Security in Salesforce
When we deal with data security in Salesforce, we are essentially talking about securing our data from unauthorized access. There might be an environment with…
The What, Why, and How of Salesforce Change Management
If you are introducing new features or processes to a Salesforce instance, then you might make or break the system. In the contemporary business environment,…
Popular Salesforce Videos
How to Create Contact in Salesforce | Salesforce Contacts | Salesforce Tutorial
Contact in Salesforce represents the individual people associated with the business accounts in your organization or Contact records are used for individuals to store personal…
Easy Way to Learn Salesforce | How to Learn Salesforce Step by Step
In this video on Easy Way to Learn Salesforce, you will learn introduction to Salesforce, how to learn Salesforce easily, Salesforce as Career and Growth,…
How to Integrate Commerce, Marketing and Service Using Salesforce Customer 360
Developers, Integrators, Admins and Architects all work together to deliver projects that span multiple Salesforce products. Salesforce is making it simpler by providing native integration…