Chat with our AI personalities
#include<iostream.h> #include<conio.h> #include<math.h> void main() { int i,j; clrscr(); for(i=3;i<=1000;i++) { for(j=2;j<=i;j++) { if(i%j==0) break; } if(i==j) cout<<j<<"\t"; } getch(); } //try it by apurba sinus
the product of -6 and a number, x, decreased by 9, is -33. what is the number?
It s a odd number because if you look at the two fives you can t spite it evenly and the one it s the same. j j j j j j This answer was by Nicole,and the answer for list all the multiplication combinations of 36 was also by me i hoe you guys think that was the right answer:{
12
#include<stdio.h> int main() { int i=1,j,count,n; printf("enter number range\n"); scanf("%d", &n); printf("following numbers are prime numbers:\t"); while(i<=n) { j=1; count=0; while(j<=n) { if(i%j==0) { count++; } j++; } if(count==2) { printf("%d\t", i); } i++; } return 0; }