- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
10 Posted Topics
I am a fresher in C and working in Linux.I created two small programs that can interact with each other. That means both can send strings to other one with in two terminal. I want to interact from two system like IP messenger. How can I make this. Socket? Pls … | |
I am beginner in java. I decided to develop a ip messenger in java. any advices and ideas are very appreciable thanks in advance MFM | |
Re: I just merged Adak's and Your code. Pls study the changes. [CODE]#include<stdio.h> int main (void) { int digit; int position[3],i; printf("enter 3 digits:"); scanf("%d",&digit); for(i = 0; digit > 0; i++) { position[i] = digit % 10; digit=digit/10; } printf("The ones place is: %d\n", position[0]); printf("The tens place is: %d\n", … | |
Re: what do u mean by 'enter the char' and read it as an integer. | |
Re: You Can simply Check the length of area code and phone number. Area code should be 6 digits and Phone number should be 10 digits value. This is for only a simple Validation. | |
| |
Re: [CODE]#include <stdio.h> void Getgrade(int mark) { if (mark >= 80 && mark <= 100) printf ("\tGrade: A\n"); else if ((mark >= 70 && mark <=79)) printf ("\tGrade: B\n"); else if ((mark >=60 && mark <=69)) printf ("\tGrade: C\n"); else if ((mark >= 50 && mark <=59)) printf ("\tGrade: D\n"); else … | |
Re: Your code is currect. but a simple currection as said by Schoil-R-LEA. Modified code is follow. It should Work. #include<stdio.h> main() { int i,j,a,n,M[10][10],min=3267; printf("\nEnter the order of square matrix:"); scanf("%d",&n); for(i=1;i<=n;i++) { printf("\nEnter the elements of the row %d:",i); for( j=1;j<=n;j++) { scanf("%d",&M[i][j]); } } for(i=1;i<=n;i++) { for(j=1;j<=n;j++) { … | |
Re: [code]for(i = 0; i < 2; i++) { rslt1 = ( a[i] & 0x7fffffffu ) + ( b[i] & 0x7fffffffu ) + carry;//first add 31lsb bits carry= rslt1 >> 31;// 32 th bit is carry rslt2 = (a[i] >> 31) + (b[i] >> 31) + carry; //add this carry with … |
The End.