Pages

Thursday, March 27, 2025

// simple "apna college" example to learn difference between do while and while loop

 #include <iostream>

using namespace std; // simple "apna college" example to learn difference between do while and while loop
int main(){
    int val = 1;
   
    do{
        cout << "apna college ";

    } while(val > 5);

    while(val > 5){
        cout << "apna college";
    }
    return 0;

}

No comments:

Post a Comment

Encode and Decode Strings - NeetCode.IO Solution by me + gemini pro 3.0 explained

  class Solution {         // encode: List of Strings -> String     public String encode ( List < String > strs) {         Stri...