answersLogoWhite

0

#include<stdio.h>

main()

{

int i;

for(i=1;i<=50;i++)

{

if (i%5!=0)

printf("\n %d",i);

}

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Writes a c program to find the sum of all integers between 1 and n?

Write a program to find the number and sum of all integers from 100 to 300 that are divisible by 11


Write a program to find the number of and sum of all integers greater than 100 and less than 200 that are divisible by 77?

What for? There is only a 154 inside that is divisible by 77...


Write a program in c that prompt user with following lines add two integers test an integer for odd or even and quit?

write a program in C that prompts the user with the following lines: a) Add two integers c) Compare two integers for the larger t) Test an integers for odd or even q) Quit


How many ways there to write a sum with the answer equalling 23?

To determine the number of ways to write a sum that equals 23, we need to consider how many distinct integers or combinations of integers can be added together to reach that total. The number of ways can vary significantly depending on the restrictions placed on the integers (e.g., positive integers, negative integers, or allowing repetitions). Without specific constraints, there are infinitely many combinations, such as using different positive integers that add up to 23, or including negative integers. If the context is more specific, such as using a fixed number of addends or only positive integers, the answer would require further details.


How do you write out the least common factor?

The least common factor of any set of positive integers is 1.


Write a program By using if else statement to read a number and check whether it is positive or negative?

write a c++program by using if statement to read a number and check whether it is positive or negative


How do you write a program to test if a given number is divisible by 6 in C programming?

if ( x % 6 == 0 ){ printf( "%d is divisible by 6", x ); } else { printf( "%d is not divisible by 6", x ); }


Write a c plus plus program to compute two integers?

int x= 1; int y= 2;


Write a statementin a java program to read 2 integers and dispay the number of interagers between them?

a=153 a=n%10;


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


How do you write a program to print the first n multiples of 7?

Algorithm: multiples input: two positive integers, m and n output: print first n multiples of m i = m; for j = 1 to n print i i = i + m; next j


Write a program in C for arithmetic operations between two integers your program should guide users with proper message or menu on the console?

Write a program in C for showing working of different logical operator in C.Your program should guide users with proper message/menu on the console. (5 Marks)