Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
81% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
1
2 Commented Posts
0 Endorsements
Ranked #4K
~13.0K People Reached
About Me

i m studying

Interests
c,c++
Favorite Forums
Favorite Tags
Member Avatar for rajii93
Member Avatar for Dorian_3
1
373
Member Avatar for shubhamgore

[B]hi friends[/B] this small compact code is for printing any number of prime numbers in C Language, you just have to change the last line's 500 to any number you want, here some points necessary to understand the code are as follows- 1.> variable torf stands for true or false,in …

Member Avatar for markanderson4
-6
860
Member Avatar for ~s.o.s~

EDIT: Please note, as I write this, the post is now 6 years old and might have some outdated information. I'd personally recommend beginners start with "Learn C the hard way" by Zed and this book since I have heard good things about them. Reading the FAQ put together by …

Member Avatar for mack1
29
5K
Member Avatar for supermastereu

Read the age and weight of 5 people. Calculate the sum of the ages of people over 70 Kg #include <stdio.h> int i, age, weight, sum; main() { for( i=0; i<5; i++) { printf("Age: "); scanf("%d",&age); printf("weight (ex: 92.5): "); scanf("%d",&weight); if(weight>70) sum=sum+age; } printf("\age sum: %d", sum); return(0); }

Member Avatar for Learner010
0
343
Member Avatar for john_hasan

Friends i have little bit problem in making a c language program. I have to make a program which prints prime numbers from 1 to 500. I make this program but with while loop then i was told to make it using for loop, which i tried but failed. So …

Member Avatar for aizam76
-1
3K
Member Avatar for cufisa

I have been trying to fix this since two eeks and I have no clue what I am doing wrong. I have gotten the program to work so that it can tell if a number is prime or not, but the problem I am having is showing at the end …

Member Avatar for rajii93
0
411
Member Avatar for Josue198s

#include<stdio.h> int main() { int pcheck=1,i; int k=1000 for(i=2;i<k;i++) { if((k%i)== 0) { pcheck=0; break; } } if(pcheck) { printf("%d is a prime .\n",k); } else { printf("%d is not a prime.\n",k); } return 0; } this code works to check any number i that write in k but when …

Member Avatar for rajii93
0
221
Member Avatar for pittdaniweb

Hello everybody, I was asked by an interviewer the following question. but I was not able to answer. Please get back to me if you know the answer. thank you in advance. Que: What is the exact difference between the "for" loop and "while" loop in C language ?

Member Avatar for rajii93
0
794
Member Avatar for DS9596

What's the difference between: int once; cout << "ok"; and this: char twice; cout << "ok"; Is the output for the first one just ok and the second one ok ok ?

Member Avatar for Ancient Dragon
0
399
Member Avatar for SW-ENG mohamed

Given an integer n, print the following shapes using asterisks and spaces. For example, for n = 5 the following shapes are printed Input: 5 Output: * * * * * * * * * * * * * * *

Member Avatar for Kristian_2
0
164
Member Avatar for Tariq Amin

what is the usage of getch() function? how to creat recovery softwear?

Member Avatar for Ancient Dragon
0
160
Member Avatar for dennis.ritchie

My IDE codeblocks 10.05 cant run a program which is overloading functions. Any help please..maybe due to settings

Member Avatar for Ancient Dragon
0
210
Member Avatar for vinay L
Member Avatar for dovlet.eminov
Member Avatar for admiri92
Member Avatar for rajii93
0
471