Write the following programs using a while loop:
a) Display the multiples of 3 backward from 33 to 3, inclusive.
b) Display the uppercase letters of the alphabet from A to Z.
1
Expert's answer
2013-03-19T09:18:24-0400
/* * Write thefollowing programs using a while loop: * a) Display the multiples of 3 backward from33 to 3, inclusive. */
#include <iostream> using namespace std;
int main() { int i=33; while(i>0) { cout<< i << " "; i-=3; } cout<< endl; return 0; }
Comments
Leave a comment