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
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
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
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