.Net基础篇_学习笔记_第三天_运算符

2021-07-04 18:05

阅读:399

标签:stat   ati   margin   学习   学习笔记   using   arp   eric   linq   

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 第三天_C_Sharp运算符
{  
     //练习,变成实现几天是几周零几天?
    class Program
    {
        static void Main(string[] args)
        {
            int days = 46;
            int weeks = days / 7;
            int day = days % 7;
            Console.WriteLine("{0}是{1}周零{2}天",days,weeks,day);                                                     //占位符的使用------与格式化输出字符区别??
            Console.ReadKey();
        }
    }
}

 

 

.Net基础篇_学习笔记_第三天_运算符

标签:stat   ati   margin   学习   学习笔记   using   arp   eric   linq   

原文地址:http://www.cnblogs.com/NBOWeb/p/7109991.html


评论


亲,登录后才可以留言!