-
정올 129 : 반복제어문1-형성평가5c/기초 2019. 1. 10. 19:18
My Solution
1234567891011121314151617181920#include<stdio.h>int main(void){int width=0,height=0;char checksum;while(1){printf("Base = ");scanf("%d", &width);printf("Height = ");scanf("%d", &height);printf("Triangle width = %.1f",width*height*0.5);printf("\nContinue? ");scanf(" %c",&checksum);if(checksum == 'Y'||checksum == 'y'){}else{break;}}return 0;}cs 반응형'c > 기초' 카테고리의 다른 글
정올 542 : 반복제어문2-자가진단2 (0) 2019.01.11 정올 541 : 반복제어문2-자가진단1 (0) 2019.01.11 정올 128 : 반복제어문1-형성평가4 (0) 2019.01.10 정올 127 : 반복제어문1-형성평가3 (0) 2019.01.10 정올 126 : 반복제어문1-형성평가2 (0) 2019.01.10