EXAMPLE 1
PRINT 1+3+5+7
EXAMPLE 2
FOR num% = 1 TO 7 STEP 2
total%=total%+num%
NEXT
PRINT total%
how do we use loops in c plus plus programing and what are basic differences between do,for and while loop
i want plus 1 blue print for all subjects
you++ will return the current value of you and increment it. ++you will increment it and then return the new value of you. So, for example: int you = 0; cout << you++; // this will print 0 cout << you; // this will print 1 int you = 0; cout << ++you; // this will print 1 cout << you; // this will also print 1
write a program to print the series 1/12+1/22+.........+1/n2 ?
That's the beginning of the Fibonacci series.
The 2010 BMW 1-Series has a 4 yr./ 50000 mi. basic warranty.
The 2012 BMW 1-Series has a 4 yr./ 50000 mi. basic warranty.
The 2011 BMW 1-Series has a 4 yr./ 50000 mi. basic warranty.
The 2013 BMW 1-Series has a 4 yr./ 50000 mi. basic warranty.
The 2008 BMW 1-Series has a 4 yr./ 50000 mi. basic warranty.
The 2009 BMW 1-Series has a 4 yr./ 50000 mi. basic warranty.
Assuming the series is 1 + 3 + 5 + ... + 25, the answer is 169.