Yea I know I will work on my indentations...
Thanks for suggestions I think I can do top 3 easily, but I am not sure about breaking out prematurely I will try though
Type: Posts; User: Ozlem Kayra
Yea I know I will work on my indentations...
Thanks for suggestions I think I can do top 3 easily, but I am not sure about breaking out prematurely I will try though
#include <stdio.h>
#include <math.h>
int main(void) {
int n;
int i;
int flag;
printf("Enter an integer to check if it is prime: ");
#include <stdio.h>
#include <math.h>
int main(void) {
int n;
int i;
int flag;
printf("Enter an integer to check if it is prime: ");
#include <stdio.h>
#include <math.h>
int main(void) {
int n;
int i;
int flag;
printf("Enter value of N > ");
#include <stdio.h>
#include <math.h>
int main(void)
{
int n;
int x;
printf("enter a number to check if it is prime\n");
scanf("%d",&x);
I don't know what did u mean exactly, but I learned a lot from these answers. Tomwa and LTA85 gave me good idea how to do program something similar to what I did. I know there is still a lot to...
Thank you very much!
Thanks a lot for very useful info :) I am very novice on programming and I thought "float" represent only decimal values between 0 and 1. And thats why I needed to calculate cents and dollars...
Allright Jim, I will do that from now on.
#include <stdio.h>
int main()
{
int p;
int n;
int d;
int q;
int sum;