Home > Blockchain >  how can i let while loop printf only come once in c?
how can i let while loop printf only come once in c?

Time:09-27

#include<stdio.h>
    int main(void)
    {
        int num;
        int days;
        int week;
        printf("enter a day\n");
        scanf_s("%d\n", &num);
        
    
        while (num)
        {
            week = num / 7;
            days = num - week * 7;
            printf("           
  •  Tags:  
  • c
  • Related