learning programming
Posted: Wed Jun 09, 2010 10:22 pm
I made this to track my progress in learning how to program
June 9 2010-i read like 2 chapters of "c++ without fear". spent like 3hr (or more a lot more)trying to figer out Microsoft visual c++ 2010, and learned that a clr console app is different from a win32 console app. I made yet another hello world program. made a program that converts Fahrenheit to Celsius and vice verse.learned about data types made a program that determines if a number is even or odd. learned how to make a loop program and made a program that loops till it gets to your number. then finished off by making a program that determines weather a number is prim or not prime. More to come
June 10 2010-i made a program that loops till it hits your numbers using the statement for, i also declared the i int after declaring the other ints. n1 and n2
June 9 2010-i read like 2 chapters of "c++ without fear". spent like 3hr (or more a lot more)trying to figer out Microsoft visual c++ 2010, and learned that a clr console app is different from a win32 console app. I made yet another hello world program. made a program that converts Fahrenheit to Celsius and vice verse.learned about data types made a program that determines if a number is even or odd. learned how to make a loop program and made a program that loops till it gets to your number. then finished off by making a program that determines weather a number is prim or not prime. More to come
June 10 2010-i made a program that loops till it hits your numbers using the statement for, i also declared the i int after declaring the other ints. n1 and n2
Code: Select all
#include "stdafx.h"
#include <iostream>
using namespace std;
int main(){
int n1, n2;
cout << "enter a number and press enter.";
cin >> n1;
cout << "now enter a number that is grater than the last and press enter.";
cin >> n2;
for (int i=n1; i<=n2;i++)
cout << i << " ";
return 0;
}
i didnt put punctuations because i did the post on my phone and i was lazyibly31 wrote:Add this to your todo list: Learn how to use punctuation to stop run on sentences.