for (int i = 2; i < 10; i ++) printf("%d\n", i); You did say even and odd numbers between 1 and 10. That's allnumbers between 1 and 10.
Start print "the sum of all even numbers is infinite" end
Give your numbers the names 'A' and 'B', and use these program lines. Whichever of the two numbers is greater will be printed. G = A If B > A THEN G = B. PRINT "The greater number is "; G
Step1- Read a,b,c. Step2-if a>b continue step 5. Step3- b>c then print “b is the largest " and continue step 7. Step4- continue step 6 Step5-if a>c then print “a is the largest " then continue step7. Step6- print “z is largest". Step7- end.
Program: include "emu8086.inc" ORG 100h MOV AX, 0004H //Move 1st 16-bit number to AX. MOV BX, FFFEH //Move 2nd 16-bit number to BX. IMUL BX //Multiply BX with AX and the result will be in DX:AX. CALL PRINT_NUM //Print the result. RET //Return. DEFINE_PRINT_NUM //Declare function. END
#include<stdio.h> #include<conio.h> void main() { clrscr(); for (int i=1;i<=100;i++) { if(i%2 !=0 && i%3 !=0) { printf("\n Numbers that are not divisible by 2 or 3:%d \n ",i); } printf("\n"); } getch(); }
You can use int i; for (i = 10; i <= 50; i += 2) {//print i} as a program to print even numbers between 10 and 50.
Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.
Write a c program to print the 100 to 1 nos
#include
Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.
you do this 10 print "0112358132134" use the whole of the thing
write a program to print A to Z on screen in c?
Try the triangle program on a search engine. Replace numbers with stars and that should do the trick
echo 'print a pattern'
Cls input "enter two no.s ",a,b sum=a+b print "sum = ";sum end
#include <iostream> int main() { for(int i=51; i <= 100; i+=2) { cout << i << endl; } return 0; }
#include<stdio.h> #include<conio.h> void main() { int i,j; for(i=51;i<100;i=i+2) { printf("%d", i); } getch(); }