#include<iostream>
int main()
{
for (int i=0; i<100; ++i)
std::cout<<i<<std::endl;
}
The simplest way is probably to read the numbers into an array and then prints each element of the array starting at the last one and moving backwards.
hexadecimal dumper, which prints or displays the binary numbers of a program in hexadecimal format.
A restaurant prints it out using a special program
ten
You first learn how to program in C.
It is too easy................ //Program to print numbers vertically #include<stdio.h> #include<conio.h> void main() { int last_no; int i; clrscr(); i=0; printf("Enter your last num.I will print 0 to that number"); scanf("%d",&last_no); printf("\n"); while(i>last_no) { printf("%d\n",i); i++; } getch(); } //poo.papule
It prints numbers at the bottom of a cheque.
/* my second program in C++ with more comments */ #include <iostream> using namespace std; int main () { cout << "Hello World! "; // prints Hello World! cout << "I'm a C++ program"; // prints I'm a C++ program return 0; }
reymond rillera reymond rillera
void f (int* a, int len) { if (!a) return;for (int i=0; i<len; ++i) { if (a[i]%2) { printf ("%d is odd\n", a[i]); } else { printf ("%d is even\n", a[i]); } }
a number lock is on
#include<stdio.h> main(void) { int n; int i; printf("Type n: "); scanf("%d",&n); for(i=1;i<=n;i++) //generates natural numbers from 1,....,n. printf("%d\n",i); //prints these numbers to standard output }