# include<stdio.h>
void main()
{
int i = 1;
while(i<11)
{
if(i%2==1)
{
printf("\n%d",i);
}
i++;
}
}
To write numbers, you can use either words or numerals. For example, you can write the number six as "six" or as the numeral "6". For basic 10 numerals, you can use the digits 0-9 to represent numbers. The number system is based on a decimal system, where each digit's value is determined by its position in the number.
In GW-BASIC, you can print even numbers from 1 to 100 using a simple loop. Here’s a sample code: FOR i = 1 TO 100 IF i MOD 2 = 0 THEN PRINT i NEXT i This program iterates through numbers 1 to 100 and prints each number if it is even (i.e., divisible by 2).
C program for sorting the numbers is very basic, start writing it and if you are having problems, post your program here and a description of the problem and you will be helped. If you are taking a computer course, how do you expect to pass exams if you have plagiarized someone else work for your assignments.
On Converting between Arabic and Roman Numbers,we get : 9 in numerals is written as : IX
The basic thing is that symbols that represent numbers can be manipulated in the same way as ordinary numbers.
First you will need to have some basic programming knowledge. You can use this to help make the program that is needed.
That really depends on what sort of program you are trying to build, what do you want the program to do?
dim a input a
mesh's basic salary is input through the keyboard. his dearness allowance is 40% of basic salarying , and house rent allowance is 20% of basic salaried. write a program to calculate his gross salary
how do we use loops in c plus plus programing and what are basic differences between do,for and while loop
i=0 do if(i/2=0) msgbox(i) while(i<=10) wend
PRINT 2,3,5,7,11,13,17,19,23,29,31,37
To write a program in QBasic that prints the sum of the even numbers from 1 to 20 in reverse order, you can follow these steps: DIM sum AS INTEGER sum = 0 FOR i = 20 TO 2 STEP -2 sum = sum + i NEXT i PRINT "The sum of even numbers from 1 to 20 is: "; sum This program initializes the sum to zero, iterates from 20 down to 2 in steps of -2 (to capture even numbers), adds each even number to the sum, and finally prints the result.
Distributing the program between processors.
find even number in array
Same with other Visual Basic program, programming in FoxPro will require you to have the right syntax.
To write numbers, you can use either words or numerals. For example, you can write the number six as "six" or as the numeral "6". For basic 10 numerals, you can use the digits 0-9 to represent numbers. The number system is based on a decimal system, where each digit's value is determined by its position in the number.