int main(){structure hotel{int items;char name[10];}a;strcpy(a.name, "TAJ");a.items=10;printf("%s", a.name);return 0;}
int main(){int a;switch(a){printf("APACHE ");}printf("HEROHONDA");}
What is the output#include<stdio.h>int main() {int a=10,b=a++ + ++a;printf ("%d %d %d %d", b,a++, a,++a);return 0;}
#include <stdio.h>#include <string.h>#include <conio.h>int main(){char username[15];char password[12];printf("Enter your username:\n");scanf("%s",&username);printf("Enter your password:\n");scanf("%s",&password);if(strcmp(username,"aru")==0){if(strcmp(password,"abhi")==0){printf("\nWelcome.Login Success!");}else{printf("\nwrong password");}}else{printf("\nUser doesn't exist");}return 0;}
What will be the output of the following code?def thrive(n):if n % 15 == 0:print("thrive", end = " ")elif n % 3 != 0 and n % 5 != 0:print("neither", end = " ")elif n % 3 == 0:print("three", end = " ")elif n % 5 == 0:print("five", end = " ")thrive(35)thrive(56)thrive(15)thrive(39)
a = len('sookshmas beyondknowing')
b = int(a)
if b%2==0:
print('Two is the factor')
elif b%3==0:
print('Three is the factor')
elif b%7==0:
print('Seven is the factor')
elif b%5==0:
print('Five is the factor')
else:
print('It may be prime')