Wednesday, March 15, 2023

1.toog 10 nii nariivchlaltai gargah

//

 #include <stdio.h>

int main() {

  double number, sum = 0;


  // the body of the loop is executed at least once

  do {

    printf("Enter a number: ");

    scanf("%lf", &number);

    sum += number;

  }

  while(number != 0.0);


  printf("Sum = %.2lf",sum);


  return 0;

}


1.toog 10 nii nariivchlaltai gargah

//  #include <stdio.h> int main() {   double number, sum = 0;   // the body of the loop is executed at least once   do {     printf(...