Z zacha Forum Veteran Established Joined Sep 5, 2021 Posts 782 Reaction 56 Points 691 May 24, 2022 #1 Attachments You do not have permission to view the full content of this post. Log in or register now.
A Aoshinomori Addict May 25, 2022 #2 C: #include <stdio.h> #include <ctype.h> void main() { float length, width; char choice; do { printf("Enter length: "); scanf("%f", &length); printf("Enter width: "); scanf("%f", &width); printf("Perimeter = %f", (2*length) + (2*width)); printf("\nWould you like to try again? [y/n]: "); scanf(" %c", &choice); choice = toupper(choice); }while (choice== 'Y'); Yung pangatlong scanf meron talagang space after ng open double quote. It's a workaround sa character input.
C: #include <stdio.h> #include <ctype.h> void main() { float length, width; char choice; do { printf("Enter length: "); scanf("%f", &length); printf("Enter width: "); scanf("%f", &width); printf("Perimeter = %f", (2*length) + (2*width)); printf("\nWould you like to try again? [y/n]: "); scanf(" %c", &choice); choice = toupper(choice); }while (choice== 'Y'); Yung pangatlong scanf meron talagang space after ng open double quote. It's a workaround sa character input.
Z zacha Forum Veteran Established May 31, 2022 TS TS #4 paps Aoshinomori pwede pa solve ng bagong post ko? hehe ito paps C language ngayon kasi deadline paps di ko namalayan Last edited: May 31, 2022
paps Aoshinomori pwede pa solve ng bagong post ko? hehe ito paps C language ngayon kasi deadline paps di ko namalayan
Z zacha Forum Veteran Established Jun 8, 2022 TS TS #5 paps Aoshinomori pwede pa tulong bukas alas 3?