I am new to C++ and I need to write a simple program to print out consecutive numbers from m to n given m=4 n=10 .
i have tried various code and nothing seems to work
this a the code
Please help ,give me a hint what might be wrong....
include <stdio>
int main() {
//prints numbers from m to n
int m,n;
int begin =4;
int end=10;
int m=4;
int n=10;
int count=0
int sum=begin +1;
while(count<=10){
count +1=count;
printf("%d\n",count);
}
}
Mod edit - Added

New Topic/Question
Reply




MultiQuote














|