Purpose of this blog is to make programming easy , weak programmers may get help from my blog i tried my best to post some of my codes in form of easiest approach, I think this blog is perfect c++ guide in form of online blog. please consult my all codes and suggest all of it with your class mates. Share experiences & knowledge with your juniors. Make yourself habitual to write different programs for 2 hours a day daily.
Sunday, 24 March 2013
C++ Even & Odd Number Teller Program
#include<iostream.h> void main() { int num; cout<<"Enter the number to check weather its even or not = "; cin>>num; if(num%2==0){cout<<"number is even";} else if(num%3==0){cout<<"number is odd";} else {cout<<"Try Again";} }