Closed. This question needs to be more focused。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗?更新问题,使其仅通过editing this post专注于一个问题。
                        
                        4年前关闭。
                                                                                            
                
        
我真的是编程新手,所以请帮助我。
这是我的算法:

Enter a number
If the number is greater than 26
Subtract 26 from the number
Until the number is less than 26
Then display the final result


我该如何编写代码?
谢谢!

最佳答案

尝试这个。但是下一次在提出问题时要付出一些努力

if (scanf("%d", &n) == 1) {
    while (n >= 26) {
        n -= 26;
    }
    printf("%d", n) ;
}

09-30 18:14
查看更多