22 Reputation Points
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
0 Endorsements
Ranked #22.5K
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 << … | |
Re: 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? "); … |