class Sookshmas{public static void main(String...k){String s = "xyz";switch (s.length()) {case 1:System.out.println("1");break;case 2:System.out.println("2");break;case 3:System.out.println("3");break;default:System.out.println("no match");}}}
#include stdio.hstruct School {int age, rollNo;};void solve() {struct School sc;sc.age = 19;sc.rollNo = 82;printf("%d %d", sc.age, sc.rollNo);}int main() {solve();return 0;}
#include iostreamWhat is the output of the following code?using namespace std;int main() {int i=0;int x=0;do{if(i%5==0){coutx;x++;}++i;}while(i10);coutx;return 0;}
def arithmetic_progression(a, d, n):return a + (n - 1) * da = 2d = 4num_terms = 4for i in range(1, num_terms + 1):print(arithmetic_progression(a, d, i), end=" ")