Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c x 9
c++ x 7
Member Avatar for hakibam

I modify this .cpp code into .c but it gives error: the original code is:(runs fine) [CODE]#include <string> #include <iostream> #include <stdlib.h> using namespace std; int main() { int c, s[10]; int i, j; string name; cout << "Welcome to Airline Reservations System!\n"; for (j=0; j<10; j++) { cout << …

Member Avatar for Abin Jossy
0
2K
Member Avatar for galmca

I just made this for u. it display like what u need.. I modified from my earlier code so that it displays not just prime but also the non-prime. [CODE]#include<stdio.h> #include<stdlib.h> int main(void) { int i,j,k; int* primeNum; int number; int n; char con[1]={}; for(k=0;;k++) { printf("\nUntil what number? "); …

Member Avatar for ramesh thota
0
468