Page 1 of 1

In basic C language Ask the user to enter an integer number N. Use a for loop to add up all the numbers from 1 through N

Posted: Fri Jul 01, 2022 5:43 am
by answerhappygod
In basic C language Ask the user to enter an integer number N.Use a for loop to add up all the numbers from 1 through N inincrements of 3. If N is 10 then 1+4+7+10 = 22 N should be definedas in integer. The program must work for all values of N. Print theresult. no floats only Ints .Also do a snippet of it in assemblyafter to see how it would look