Saved Bookmarks
| 1. |
Write for loop to display the following. To display ----- Z Y X W V U |
Answer» Answer:These are the required PROGRAMS for the question. 1. In Java. PUBLIC class Series { public static void main(String ARGS[]) { for(char i='Z';i>='U';i--) System.out.print(i+" "); } } 2. In Python. for i in range(90,84,-1): print(chr(i),end=" ") 3. In C. #include INT main() { for(char i='Z';i>='U';i--) printf("%c ",i); return 0; } 4. In C++ #include using namespace std; int main() { for(char i='Z';i>='U';i--) cout< return 0; } •••♪ |
|