-
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
4 Ways Salesforce Can Help Enhance Your Field Work
Are you a company that provides field service? If so, you understand how important it is to offer the best quality in your work. After…
Why Salesforce Integration Can Be Your Best Bet for Business Growth
Welcome to the age of the Customer. The only riddle that matters here is—how to connect better with them, carve meaningful relationships, address their problems…
Salesforce Development Company in the USA: Empowering Businesses for Success
Modern businesses are constantly seeking innovative solutions to streamline their operations, improve customer relationships, and boost overall efficiency in today's digital landscape. CRM platforms like…
Popular Salesforce Videos
Salesforce Mobile Publisher Demo
With Salesforce Mobile Publisher, you can create pixel-perfect mobile applications for employees, customers, and partners. Check out this video and learn all you need to…
Salesforce DX simplified with AutoRABIT - Bay Area Salesforce Developer Group
A common need that teams developing on the Salesforce platform express is the desire for a single solution that will take their developers through the…
Tableau CRM for Emergency Response Management | Salesforce
When disaster strikes, public and private health organizations, as well as government agencies, need to respond quickly and efficiently. Tableau CRM for Emergency Response Management…