No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
[B]To the following program I need to:[/B] Homework 2.b /* crypto.c. Program that encrypts a letter by shifting the value by k*/ #include <stdio.h> #define BASE 65 #define RANGE 26 main() { char originalLetter; char encryptedLetter; int k; printf("Input a Capital letter:\n"); scanf("%c", &originalLetter); printf("Input an integer that is less … | |
I have another queation, why this program won't sort my numbers from the smallest to the biggest?? #include<stdio.h> main() { float temp, num1, num2, num3, num4; printf("Input 4 numbers:\n"); scanf("%f%f%f%f", &num1, &num2, &num3, &num4); if(num1>num2) { temp=num1; num1=num2; num2=temp; } if(num2>num3) { temp=num2; num2=num3; num3=temp; } if(num3>num4) { temp=num3; num3=num4; … |
The End.