- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
13 Posted Topics
Re: "c how to program",dont remember tha author,but i think it will suite you | |
| |
Re: I think value number0fdays is not pass to the function calcdays | |
Re: Also,when u declare char,u may declare like this char choice[2],then in the if else,u may do like this, if (choice[0]=='c') s0 the program will go check to that char | |
Re: #include <stdio.h> #include <stdlib.h> /* Function Definition, I do not know whether it is as simplified as definition only*/ void findbig(int num1, int num2); int main() { int num1,num2; printf("\nCompare the 2 numbers\n"); printf("Please enter the first number\n"); scanf("%d",&num1); printf("Please enter the second number\n"); scanf("%d",&num2); findbig(num1,num2);//you must call the function … | |
| |
Re: #include <stdio.h> void Reverse(); int main() { printf("Enter a sentence: "); Reverse(); return 0; } void Reverse() { char c; scanf("%c",&c); if( c != '\n') { Reverse(); printf("%c",c); } } i think it will be like this | |
Re: #include <stdio.h> //header #include <stdlib.h> int main() { //applicant information char name[30]; char faculty[30]; char matric_no[20]; char date[10]; char vehicle[20]; char destination[50]; char travelling_purpose[50]; int time1, time2, number_passengers; int mobile_no, total_hours; printf("Please enter your name : "); scanf("%s", &name); printf("\nPlease enter your faculty name : "); scanf("%s", &faculty); printf("\nPlease enter … | |
Re: hi colin,i think this would be help #include <stdio.h> #include <stdlib.h> #include<math.h> int main() { float A,B,C,test; float x1,x2; printf("This program will solve the quadratic equations\n"); printf("\nEnter the integer value a,b and c for the equations Ax^2 + Bx + C\n\n\n"); printf("Enter the value of integer A : \n\n"); scanf("%d", … | |
The End.