for (int n = 0; n <=100; n++) // you may start n = 1, same result, 1 less iteration
{
if (n % 6) // or, n % 6 != 0
printf(n);
}
Sorry we are not here to solve your assignment questions.
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.
#include
If you forget the semicolon, your program won't compile.
Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.
its supposed to have an asterisk there before the 's but it wouldnt print it
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.
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.
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.
#include
This is a homework question and does not deserve an answer because you will learn nothing other than being lazy.
If you forget the semicolon, your program won't compile.
Turbo Pascal is a style of computer programming. This type of writing language can be used to create a program that prints the alphabet backwards.
its supposed to have an asterisk there before the 's but it wouldnt print it
PRINT 2,3,5,7,11,13,17,19,23,29,31,37
Install your phone software program and download the list to your PC then print. Your phone program can be downloaded from your phone maker web site if it did not come with your phone package.
Try the triangle program on a search engine. Replace numbers with stars and that should do the trick
find even number in array