0

What is an error?

#include <stdio.h> int main() { int n,i; scanf("%d",&n); if(n>10) { printf("Hive Five"); } else { if(n<1) { printf("shh"); } else if((n<=10) && (n>=1)) { for(i=0;i<n;i++) { printf("Ra!"); } } } return 0; }

2nd Jun 2021, 2:00 PM
Jenishan Vijayakumar
Jenishan Vijayakumar - avatar
3 Antworten
+ 1
Code working fine.. Check spelling again for "Hive Five" including capitalization..
2nd Jun 2021, 2:19 PM
Jayakrishna 🇮🇳
0
Hive five => High Five
2nd Jun 2021, 2:21 PM
TOLUENE
TOLUENE - avatar
0
Use if then else if and then else.
3rd Jun 2021, 6:30 PM
Chinmay Anand
Chinmay Anand - avatar